From a3ea359b019ee999f725f8b70092e54f93fcee73 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 17 Dec 2024 07:02:44 +0100 Subject: [PATCH 1/9] fix: remove useless try catch --- .../Zone/Card/ZoneDescriptorMenuItems.vue | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue b/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue index 22d5bcd5e..3c45700cb 100644 --- a/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue +++ b/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue @@ -16,24 +16,14 @@ const actions = { clone: async () => { const opts = { message: t('Zone cloned'), type: 'positive' }; - try { - const { data } = await axios.post(`Zones/${zoneId}/clone`, {}); - notify(opts); - push(`/zone/${data.id}/basic-data`); - } catch (e) { - opts.message = t('It was not able to clone the zone'); - opts.type = 'negative'; - } + const { data } = await axios.post(`Zones/${zoneId}/clone`, {}); + notify(opts); + push(`/zone/${data.id}/basic-data`); }, remove: async () => { - try { - await axios.post(`Zones/${zoneId}/deleteZone`); - - notify({ message: t('Zone deleted'), type: 'positive' }); - push({ name: 'ZoneList' }); - } catch (e) { - notify({ message: e.message, type: 'negative' }); - } + await axios.post(`Zones/${zoneId}/deleteZone`); + notify({ message: t('Zone deleted'), type: 'positive' }); + push({ name: 'ZoneList' }); }, }; function openConfirmDialog(callback) { From 4ab3934da37ce04218cff749a51ace8251ad02f0 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 17 Dec 2024 12:19:35 +0100 Subject: [PATCH 2/9] fix: hotfix mix --- src/pages/Item/ItemFixedPrice.vue | 358 +++++++++++----------- src/pages/Supplier/SupplierListFilter.vue | 4 +- src/pages/Travel/Card/TravelSummary.vue | 27 +- src/pages/Travel/TravelFilter.vue | 4 +- src/pages/Travel/TravelList.vue | 14 +- 5 files changed, 203 insertions(+), 204 deletions(-) diff --git a/src/pages/Item/ItemFixedPrice.vue b/src/pages/Item/ItemFixedPrice.vue index 09fccfd6d..f44237020 100644 --- a/src/pages/Item/ItemFixedPrice.vue +++ b/src/pages/Item/ItemFixedPrice.vue @@ -361,7 +361,7 @@ function handleOnDataSave({ CrudModelRef }) { @on-fetch="(data) => (warehousesOptions = data)" auto-load url="Warehouses" - :filter="{ fields: ['id', 'name'], order: 'name ASC', limit: 30 }" + :filter="{ fields: ['id', 'name'], order: 'name ASC' }" /> - - - - + + + - + + - - - - - - - + + + + + - - - - - + + + + + + + + + + + + + +