Skip to content

Commit

Permalink
Merge pull request #225 from shanmukhdutt/inventory-count-209
Browse files Browse the repository at this point in the history
Fixed: click on card to open detail page from upload page (#209)
  • Loading branch information
ravilodhi authored Feb 9, 2024
2 parents e9ea439 + c1872b9 commit 68f0a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/Upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
</ion-header>

<ion-content>
<ion-card v-for="product in uploadProducts" :key="product.productId">
<ion-card v-for="product in uploadProducts" :key="product.productId" @click="viewProduct(product)">
<ion-item lines="none">
<ion-thumbnail slot="start">
<DxpShopifyImg :src="product.mainImageUrl" size="small"/>
</ion-thumbnail>
<ion-label @click="viewProduct(product)">
<ion-label>
<p class="overline">{{ getProductIdentificationValue(productIdentificationPref.secondaryId, product) }}</p>
<h2>{{ getProductIdentificationValue(productIdentificationPref.primaryId, product) ? getProductIdentificationValue(productIdentificationPref.primaryId, product) : product.productName }}</h2>
</ion-label>
Expand All @@ -36,7 +36,7 @@
<ion-label>{{ $t("Variance") }}</ion-label>
<ion-label slot="end">{{ product.quantity - product.availableQOH }}</ion-label>
</ion-item>
<ion-button fill="clear" @click="removeItem(product.sku)">{{ $t( "Remove" ) }}</ion-button>
<ion-button fill="clear" @click.stop="removeItem(product.sku)">{{ $t( "Remove" ) }}</ion-button>
</ion-card>
<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button @click="presentAlertOnUpload()" :disabled="!hasPermission(Actions.APP_INVNTRY_CNT_IMPORT) || Object.keys(uploadProducts).length === 0">
Expand Down

0 comments on commit 68f0a62

Please sign in to comment.