From 61d0d71538da93b9ae1f4170822e5502849294c1 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 28 Nov 2024 12:26:33 +0100 Subject: [PATCH] fix: fixed functionality like Salix --- .../Zone/Card/ZoneEventExclusionForm.vue | 12 +++----- src/pages/Zone/Card/ZoneEvents.vue | 15 ++++++---- src/pages/Zone/Card/ZoneEventsPanel.vue | 30 ++++--------------- 3 files changed, 19 insertions(+), 38 deletions(-) diff --git a/src/pages/Zone/Card/ZoneEventExclusionForm.vue b/src/pages/Zone/Card/ZoneEventExclusionForm.vue index 6635ce385..62cf7cf8d 100644 --- a/src/pages/Zone/Card/ZoneEventExclusionForm.vue +++ b/src/pages/Zone/Card/ZoneEventExclusionForm.vue @@ -67,7 +67,7 @@ const exclusionGeoCreate = async () => { }; const exclusionCreate = async () => { - if (isNew.value) + if (isNew.value || props.event?.type) await axios.post(`Zones/${route.params.id}/exclusions`, [{ dated: dated }]); else await axios.put(`Zones/${route.params.id}/exclusions/${props.event?.id}`, { @@ -119,11 +119,7 @@ onMounted(() => { >