Skip to content

Commit

Permalink
Improved: usage of ion-input to use label property and remove ion-lab…
Browse files Browse the repository at this point in the history
…el component for the same(#243)
  • Loading branch information
ymaheshwari1 committed Dec 26, 2023
1 parent ca5b0ac commit 5d9a029
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/views/count.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@

<div v-if="segmentSelected === 'count'" class="inventory-form">
<ion-item>
<ion-label position="floating">{{ $t("Stock") }}</ion-label>
<ion-input type="number" min="0" inputmode="numeric" :value="quantity" @ionChange="quantity = $event.detail.value" ></ion-input>
<ion-input :label="$t('Stock')" label-placement="floating" type="number" min="0" inputmode="numeric" :value="quantity" @ionChange="quantity = $event.detail.value" ></ion-input>
</ion-item>
<ion-item lines="none">
<ion-note id="stockCount">{{ $t("Enter the count of stock on the shelf.") }}</ion-note>
Expand Down Expand Up @@ -79,8 +78,7 @@

<div v-else class="inventory-form">
<ion-item>
<ion-label position="floating">{{ $t("Quantity") }}</ion-label>
<ion-input type="number" inputmode="numeric" :placeholder="$t('inventory variance')" v-model="product.varianceQuantity" />
<ion-input :label="$t('Quantity')" label-placement="floating" type="number" inputmode="numeric" :placeholder="$t('inventory variance')" v-model="product.varianceQuantity" />
</ion-item>
<ion-item lines="none">
<ion-note id="stockCount">{{ $t("Enter the amount of stock that has changed.") }}</ion-note>
Expand Down

0 comments on commit 5d9a029

Please sign in to comment.