Skip to content

Commit

Permalink
Updated: added schedule restock mapping on savedmappings page(hotwax#285
Browse files Browse the repository at this point in the history
)
  • Loading branch information
R-Sourabh committed May 30, 2024
1 parent b909719 commit dc903c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/theme/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ http://ionicframework.com/docs/theming/ */
background: var(--ion-color-step-300, #edeef0);
color: var(--ion-text-color, #000);
font-family: inherit;
font-size: 1rem;
}

.date-time-modal {
Expand Down
6 changes: 6 additions & 0 deletions src/views/SavedMappings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<ion-label>{{ mapping.name }}</ion-label>
</ion-item>
</ion-list>
<ion-list v-if="Object.keys(fieldMappings('RSTSTK')).length">
<ion-list-header>{{ translate("Scheduled restock") }}</ion-list-header>
<ion-item v-for="(mapping, index) in fieldMappings('RSTSTK')" :key="index" @click="viewMappingConfiguration(index, 'RSTSTK')" detail button>
<ion-label>{{ mapping.name }}</ion-label>
</ion-item>
</ion-list>
</section>

<aside class="desktop-only" v-if="isDesktop" v-show="currentMapping.id != ''">
Expand Down
3 changes: 1 addition & 2 deletions src/views/ScheduledRestockReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
</ion-select>
</ion-item>
<ion-item>
<ion-icon slot="start" :icon="globeOutline"/>
<ion-select :disabled="!selectedProductStoreId" label="Shopify store" interface="popover" :placeholder = "translate('Select')" v-model="selectedShopifyShopId">
<ion-select-option v-for="shop in shopifyShops" :key="shop.shopId" :value="shop.shopId">
{{ shop.name ? shop.name : shop.shopId }}
Expand Down Expand Up @@ -353,7 +352,7 @@ export default defineComponent({
return item.parentProductId.includes(query) ||
item.productId.includes(query) ||
item.parentProductName.toLowerCase().includes(query.toLowerCase()) ||
item.product.toLowerCase().includes(query.toLowerCase());
item.identification.toLowerCase().includes(query.toLowerCase());
});
}
const noItemsFound = !Object.values(filteredItems).some(items => items.length > 0);
Expand Down

0 comments on commit dc903c4

Please sign in to comment.