From 1dceb96c7c81941f11b454dfc5c36b7bd707cd5e Mon Sep 17 00:00:00 2001 From: mohit-nagaraj Date: Tue, 8 Oct 2024 07:17:31 +0530 Subject: [PATCH] fix(app): notification modal fix --- src/components/NotificationDialog.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 864cbf5f4..b34b5f8ad 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -226,10 +226,26 @@ export default { this.notification.name = this.getUniqueDefaultName(to); } }, + $route(to, from) { + if (this.modal) { + this.modal.hide(); + } + } }, mounted() { this.modal = new Modal(this.$refs.modal); }, + beforeUnmount() { + if (this.modal) { + this.modal.dispose(); + } + }, + beforeRouteLeave(to, from, next) { + if (this.modal) { + this.modal.hide(); + } + next(); + }, methods: { /**