From e6f0320cf576f74e41cc91c8aff4994d0c8aefc9 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 24 Sep 2024 09:03:59 -0300 Subject: [PATCH] Change view type button logic --- src/pages/Ecomerce/CatalogView.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/Ecomerce/CatalogView.vue b/src/pages/Ecomerce/CatalogView.vue index 23f21a6b..593a2fd3 100644 --- a/src/pages/Ecomerce/CatalogView.vue +++ b/src/pages/Ecomerce/CatalogView.vue @@ -491,13 +491,12 @@ const isSomeFilterSelected = computed(() => { const viewTypeButtonContent = computed(() => { return { - label: t(viewMode.value === 'list' ? 'listView' : 'gridView'), - icon: viewMode.value === 'list' ? 'view_list' : 'grid_on' + label: t(viewMode.value === 'list' ? 'gridView' : 'listView'), + icon: viewMode.value === 'list' ? 'grid_on' : 'view_list' }; }); const getFilters = async () => { - console.log('getFilters'); const promises = [ getItemFamilies(), getItemColors(), @@ -510,7 +509,6 @@ const getFilters = async () => { }; const getItems = async () => { - console.log('getItems'); try { if (!basketOrderId.value || !isSomeFilterSelected.value) return; loading.value = true;