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" >