0
0
Fork 0

Hide panel when ZoneEvent view unmounts

This commit is contained in:
William Buezas 2024-05-28 11:24:52 -03:00
parent d4600a1181
commit e80b9a71c6
1 changed files with 3 additions and 1 deletions

View File

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