Skip to content

Commit

Permalink
Improved: usage of ion-select as per the changes in ionic7(#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jan 5, 2024
1 parent 4cdc99e commit e0580b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/LanguageSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
{{ $t('Select your preferred language.') }}
</ion-card-content>
<ion-item lines="none">
<ion-label>{{ $t("Choose language") }}</ion-label>
<ion-select interface="popover" :value="currentLocale" @ionChange="setLocale($event.detail.value)">
<ion-select :label="$t('Choose language')" interface="popover" :value="currentLocale" @ionChange="setLocale($event.detail.value)">
<ion-select-option v-for="locale in Object.keys(locales)" :key="locale" :value="locale">{{ locales[locale] }}</ion-select-option>
</ion-select>
</ion-item>
Expand Down
6 changes: 2 additions & 4 deletions src/components/ProductIdentifier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
</ion-card-content>

<ion-item>
<ion-label>{{ "Primary Product Identifier" }}</ion-label>
<ion-select interface="popover" :placeholder="'primary identifier'" :value="productIdentificationPref.primaryId" @ionChange="setProductIdentificationPref($event.detail.value, 'primaryId')">
<ion-select :label="$t('Primary Product Identifier')" interface="popover" :placeholder="'primary identifier'" :value="productIdentificationPref.primaryId" @ionChange="setProductIdentificationPref($event.detail.value, 'primaryId')">
<ion-select-option v-for="identification in productIdentificationOptions" :key="identification" :value="identification" >{{ identification }}</ion-select-option>
</ion-select>
</ion-item>
<ion-item>
<ion-label>{{ "Secondary Product Identifier" }}</ion-label>
<ion-select interface="popover" :placeholder="'secondary identifier'" :value="productIdentificationPref.secondaryId" @ionChange="setProductIdentificationPref($event.detail.value, 'secondaryId')">
<ion-select :label="$t('Secondary Product Identifier')" interface="popover" :placeholder="'secondary identifier'" :value="productIdentificationPref.secondaryId" @ionChange="setProductIdentificationPref($event.detail.value, 'secondaryId')">
<ion-select-option v-for="identification in productIdentificationOptions" :key="identification" :value="identification" >{{ identification }}</ion-select-option>
<ion-select-option value="">{{ "None" }}</ion-select-option>
</ion-select>
Expand Down

0 comments on commit e0580b9

Please sign in to comment.