From fc417e55c833b515cb082082ce0b3a2d9561eaf6 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 4 Mar 2024 15:48:10 +0530 Subject: [PATCH 1/2] Improved: added an all chip for selecting all products on product audit page (#266) --- src/views/catalog.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/catalog.vue b/src/views/catalog.vue index 6b896450..f93b0c09 100644 --- a/src/views/catalog.vue +++ b/src/views/catalog.vue @@ -141,6 +141,10 @@ export default defineComponent({ return { prodCatalogCategoryTypeId: '', // 'All' is selected by default filters: [{ + name: 'All', + value: '' + }, + { name: 'Pre-order', value: 'PCCT_PREORDR' }, { @@ -206,9 +210,10 @@ export default defineComponent({ }) }, async applyFilter(value: string) { - if(value === this.prodCatalogCategoryTypeId) this.prodCatalogCategoryTypeId = '' - else this.prodCatalogCategoryTypeId = value - this.getCatalogProducts() + if(value !== this.prodCatalogCategoryTypeId) { + this.prodCatalogCategoryTypeId = value + this.getCatalogProducts() + } }, viewProduct(product: any) { this.router.push({ path: `/catalog-product-details/${product.groupId}`, query: { variantId: product.productId } }); From 337733796ecb7efb20f8a42f94701b1a187bd0ae Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 5 Mar 2024 18:02:11 +0530 Subject: [PATCH 2/2] Improved: indentation for the filters list (#266) --- src/views/catalog.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/catalog.vue b/src/views/catalog.vue index f93b0c09..be9f6e9c 100644 --- a/src/views/catalog.vue +++ b/src/views/catalog.vue @@ -143,8 +143,7 @@ export default defineComponent({ filters: [{ name: 'All', value: '' - }, - { + }, { name: 'Pre-order', value: 'PCCT_PREORDR' }, {