forked from verdnatura/salix-front
Hide panel when ZoneEvent view unmounts
This commit is contained in:
parent
d4600a1181
commit
e80b9a71c6
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref, onUnmounted } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
import ZoneEventsPanel from './ZoneEventsPanel.vue';
|
import ZoneEventsPanel from './ZoneEventsPanel.vue';
|
||||||
|
@ -39,6 +39,8 @@ const onZoneEventFormClose = () => {
|
||||||
showZoneEventForm.value = false;
|
showZoneEventForm.value = false;
|
||||||
zoneEventsFormProps.value = {};
|
zoneEventsFormProps.value = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue