Skip to content

Commit

Permalink
Improved: UI to pass hidden-label when label is not present(hotwax#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Feb 26, 2024
1 parent 4168b6b commit 2bc7358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/CreateMappingModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<ion-list>
<ion-item :key="field" v-for="(fieldValues, field) in getFields()">
<template v-if="field === 'productIdentification'">
<ion-select interface="popover" :placeholder = "$t('Select')" slot="start" v-model="identificationTypeId">
<ion-select aria-label="identification-type-id" interface="popover" :placeholder = "$t('Select')" slot="start" v-model="identificationTypeId">
<ion-select-option :key="goodIdentificationType.goodIdentificationTypeId" v-for="goodIdentificationType in goodIdentificationTypes">{{ goodIdentificationType.description }}</ion-select-option>
</ion-select>
<ion-select interface="popover" v-if="content.length" :placeholder = "$t('Select')" slot="end" v-model="fieldMapping['productIdentification']">
<ion-select aria-label="identification-type-value" interface="popover" v-if="content.length" :placeholder = "$t('Select')" slot="end" v-model="fieldMapping['productIdentification']">
<ion-select-option :key="index" v-for="(prop, index) in fileColumns">{{ prop }}</ion-select-option>
</ion-select>
</template>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Inventory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
<ion-list-header>{{ $t("Select the column index for the following information in the uploaded CSV.") }}</ion-list-header>
<ion-item :key="field" v-for="(fieldValues, field) in fields">
<template v-if="field === 'productIdentification'">
<ion-select interface="popover" :placeholder = "$t('Select')" slot="start" v-model="identificationTypeId">
<ion-select aria-label="identification-type-id" interface="popover" :placeholder = "$t('Select')" slot="start" v-model="identificationTypeId">
<ion-select-option :key="goodIdentificationType.goodIdentificationTypeId" :value="goodIdentificationType.goodIdentificationTypeId" v-for="goodIdentificationType in goodIdentificationTypes">{{ goodIdentificationType.description }}</ion-select-option>
</ion-select>
<ion-select interface="popover" v-if="content.length" :placeholder = "$t('Select')" slot="end" v-model="fieldMapping['productIdentification']">
<ion-select aria-label="identification-type-value" interface="popover" v-if="content.length" :placeholder = "$t('Select')" slot="end" v-model="fieldMapping['productIdentification']">
<ion-select-option :key="index" v-for="(prop, index) in fileColumns">{{ prop }}</ion-select-option>
</ion-select>
</template>
Expand Down

0 comments on commit 2bc7358

Please sign in to comment.