Skip to content

Commit

Permalink
Improved: Display Product Store ID instead of Store Name when Store N…
Browse files Browse the repository at this point in the history
…ame is not present in productStore popover and in facility creation flow.
  • Loading branch information
priyanshee1604 committed Jan 20, 2025
1 parent 2784039 commit 3bff79b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/ProductStorePopover.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<ion-content>
<ion-list>
<ion-list-header>{{ getProductStore(currentProductStore.productStoreId).storeName }}</ion-list-header>
<ion-list-header>
{{ getProductStore(currentProductStore.productStoreId).storeName || currentProductStore.productStoreId }}</ion-list-header>
<ion-item button @click="togglePrimary()">
{{ translate("Primary") }}
<ion-icon slot="end" :color="current.primaryFacilityGroupId === shopifyShopIdForProductStore(currentProductStore.productStoreId) ? 'warning' : ''" :icon="current.primaryFacilityGroupId === shopifyShopIdForProductStore(currentProductStore.productStoreId) ? star : starOutline" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/AddFacilityConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<ion-list>
<ion-item v-for="store in selectedProductStores" :key="store.productStoreId">
<ion-label>
<h2>{{ getProductStore(store.productStoreId)?.storeName }}</h2>
<h2>{{ getProductStore(store.productStoreId)?.storeName || store.productStoreId }}</h2>
</ion-label>
<ion-badge v-if="store.productStoreId === primaryFacilityGroupId">
{{ translate("primary store") }}
Expand Down

0 comments on commit 3bff79b

Please sign in to comment.