Skip to content

Commit

Permalink
Improved: case to display productStoreId when name for the productSto…
Browse files Browse the repository at this point in the history
…re is missing(hotwax#323)
  • Loading branch information
ymaheshwari1 committed Nov 20, 2024
1 parent 81bbb6b commit 857bf29
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,31 +161,31 @@
</ion-card>

<ion-card>
<ion-card-header>
<ion-card-title>
{{ translate("Product Stores") }}
</ion-card-title>
<ion-button v-if="facilityProductStores?.length" @click="selectProductStores()" fill="clear">
<ion-icon :icon="addCircleOutline" slot="end" />
{{ translate("Add") }}
</ion-button>
</ion-card-header>
<ion-item v-for="store in facilityProductStores" :key="store.productStoreId">
<ion-label>
{{ getProductStore(store.productStoreId)?.storeName || store.productStoreId }}
</ion-label>
<ion-badge slot="end" v-if="shopifyShopIdForProductStore(store.productStoreId) !== '' && shopifyShopIdForProductStore(store.productStoreId) === current.primaryFacilityGroupId">
{{ translate("primary store") }}
</ion-badge>
<ion-button slot="end" fill="clear" color="medium" @click="productStorePopover($event, store)">
<ion-icon slot="icon-only" :icon="ellipsisVerticalOutline" />
</ion-button>
</ion-item>
<ion-button v-if="!facilityProductStores?.length" expand="block" fill="outline" @click="selectProductStores()">
{{ translate("Add") }}
<ion-icon slot="end" :icon="addCircleOutline" />
</ion-button>
</ion-card>
<ion-card-header>
<ion-card-title>
{{ translate("Product Stores") }}
</ion-card-title>
<ion-button v-if="facilityProductStores?.length" @click="selectProductStores()" fill="clear">
<ion-icon :icon="addCircleOutline" slot="end" />
{{ translate("Add") }}
</ion-button>
</ion-card-header>
<ion-item v-for="store in facilityProductStores" :key="store.productStoreId">
<ion-label>
{{ getProductStore(store.productStoreId)?.storeName || store.productStoreId }}
</ion-label>
<ion-badge slot="end" v-if="shopifyShopIdForProductStore(store.productStoreId) !== '' && shopifyShopIdForProductStore(store.productStoreId) === current.primaryFacilityGroupId">
{{ translate("primary store") }}
</ion-badge>
<ion-button slot="end" fill="clear" color="medium" @click="productStorePopover($event, store)">
<ion-icon slot="icon-only" :icon="ellipsisVerticalOutline" />
</ion-button>
</ion-item>
<ion-button v-if="!facilityProductStores?.length" expand="block" fill="outline" @click="selectProductStores()">
{{ translate("Add") }}
<ion-icon slot="end" :icon="addCircleOutline" />
</ion-button>
</ion-card>
</section>

<section>
Expand Down

0 comments on commit 857bf29

Please sign in to comment.