Skip to content

Commit

Permalink
Update ion-select v-model
Browse files Browse the repository at this point in the history
  • Loading branch information
6c65726f79 committed Jun 10, 2021
1 parent d184575 commit d96fe56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/views/AddTorrent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<ion-label>
{{ Locale.priority.priority }}
</ion-label>
<ion-select placeholder="Select One" :value="settings.bandwidthPriority" v-on:ionChange="settings.bandwidthPriority=$event.target.value" :okText="Locale.ok" :cancelText="Locale.actions.cancel">
<ion-select placeholder="Select One" v-model="settings.bandwidthPriority" :okText="Locale.ok" :cancelText="Locale.actions.cancel">
<ion-select-option :value="1">{{ Locale.priority.high }}</ion-select-option>
<ion-select-option :value="0">{{ Locale.priority.normal }}</ion-select-option>
<ion-select-option :value="-1">{{ Locale.priority.low }}</ion-select-option>
Expand Down
2 changes: 1 addition & 1 deletion src/views/ServerConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@

<ion-item>
<ion-label>{{ Locale.encryption }}</ion-label>
<ion-select placeholder="Select One" :value="config.encryption" v-on:ionChange="config.encryption=$event.target.value" :okText="Locale.ok" :cancelText="Locale.actions.cancel">
<ion-select placeholder="Select One" v-model="config.encryption" :okText="Locale.ok" :cancelText="Locale.actions.cancel">
<ion-select-option value="required">{{ Locale.required }}</ion-select-option>
<ion-select-option value="preferred">{{ Locale.preferred }}</ion-select-option>
<ion-select-option value="tolerated">{{ Locale.tolerated }}</ion-select-option>
Expand Down
2 changes: 1 addition & 1 deletion src/views/components/Options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<ion-label>
{{ Locale.priority.priority }}
</ion-label>
<ion-select placeholder="Select One" :value="details.bandwidthPriority" v-on:ionChange="details.bandwidthPriority=$event.target.value" :okText="Locale.ok" :cancelText="Locale.actions.cancel">
<ion-select placeholder="Select One" v-model="details.bandwidthPriority" :okText="Locale.ok" :cancelText="Locale.actions.cancel">
<ion-select-option :value="1">{{ Locale.priority.high }}</ion-select-option>
<ion-select-option :value="0">{{ Locale.priority.normal }}</ion-select-option>
<ion-select-option :value="-1">{{ Locale.priority.low }}</ion-select-option>
Expand Down

0 comments on commit d96fe56

Please sign in to comment.