Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: click on card to open detail page from upload page (#209) #225

Merged
merged 7 commits into from
Feb 9, 2024
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)">
ymaheshwari1 marked this conversation as resolved.
Show resolved Hide resolved
<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
Loading