From c5586367995c98d3ab7e29305a8d571aafaec719 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 25 Nov 2024 11:12:11 +0100 Subject: [PATCH] refactor: requested changes --- src/components/FormPopup.vue | 10 +++++----- src/pages/Zone/Card/ZoneEventExclusionForm.vue | 11 ----------- src/pages/Zone/Card/ZoneLocationsTree.vue | 2 +- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/components/FormPopup.vue b/src/components/FormPopup.vue index 893ee8393..e1c15fcf4 100644 --- a/src/components/FormPopup.vue +++ b/src/components/FormPopup.vue @@ -57,12 +57,12 @@ const closeForm = () => { -

{{ $props.title }}

-

{{ $props.subtitle }}

+

{{ title }}

+

{{ subtitle }}

{ v-close-popup /> { }; await axios.post('Zones/exclusionGeo', params); await refetchEvents(); - const params = { - zoneFk: parseInt(route.params.id), - date: dated.value, - geoIds: tickedNodes.value, - }; - await axios.post('Zones/exclusionGeo', params); - await refetchEvents(); }; const exclusionCreate = async () => { @@ -92,9 +85,6 @@ const deleteEvent = async () => { if (!props.event) return; await axios.delete(`Zones/${route.params.id}/exclusions`); await refetchEvents(); - if (!props.event) return; - await axios.delete(`Zones/${route.params.id}/exclusions`); - await refetchEvents(); }; const closeForm = () => emit('closeForm'); @@ -131,7 +121,6 @@ onMounted(() => { diff --git a/src/pages/Zone/Card/ZoneLocationsTree.vue b/src/pages/Zone/Card/ZoneLocationsTree.vue index d0d4b18b8..cc84b3665 100644 --- a/src/pages/Zone/Card/ZoneLocationsTree.vue +++ b/src/pages/Zone/Card/ZoneLocationsTree.vue @@ -152,7 +152,7 @@ onUnmounted(() => { v-if="showSearchBar" v-model="store.userParams.search" :placeholder="$t('globals.search')" - @keyup.enter="reFetch" + @keydown.enter="reFetch" >