Skip to content

Commit

Permalink
Fixed facility store name
Browse files Browse the repository at this point in the history
  • Loading branch information
theabhishekjamle committed Oct 19, 2024
1 parent 33cbb71 commit 81bbb6b
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,27 +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 }}</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 81bbb6b

Please sign in to comment.