diff --git a/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue b/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue index 62d7cafdd..f549bb8d4 100644 --- a/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue +++ b/src/pages/Zone/Card/ZoneDescriptorMenuItems.vue @@ -40,7 +40,7 @@ const actions = { }, remove: async () => { try { - await axios.delete(`Zones/${zoneId}`); + await axios.post(`Zones/${zoneId}/deleteZone`); notify({ message: t('Zone deleted'), type: 'positive' }); notify({ diff --git a/src/pages/Zone/Card/ZoneEventExclusionForm.vue b/src/pages/Zone/Card/ZoneEventExclusionForm.vue index 9c325e047..721f4bbc3 100644 --- a/src/pages/Zone/Card/ZoneEventExclusionForm.vue +++ b/src/pages/Zone/Card/ZoneEventExclusionForm.vue @@ -116,7 +116,6 @@ const closeForm = () => emit('closeForm'); const refetchEvents = async () => { await arrayData.refresh({ append: false }); closeForm(); - // window.location.reload(); }; onMounted(() => { diff --git a/src/pages/Zone/ZoneList.vue b/src/pages/Zone/ZoneList.vue index 9c7036b94..033aecab7 100644 --- a/src/pages/Zone/ZoneList.vue +++ b/src/pages/Zone/ZoneList.vue @@ -140,7 +140,7 @@ const handleClone = (id) => { type="number" min="0" /> - +