From 0d2b380f44f7541e836b1eaaa464878be029de11 Mon Sep 17 00:00:00 2001 From: mohit-nagaraj Date: Tue, 8 Oct 2024 09:31:05 +0530 Subject: [PATCH] Update NotificationDialog.vue i hadnt saved this T_T --- src/components/NotificationDialog.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue index 4641fe9ab..dffe2e031 100644 --- a/src/components/NotificationDialog.vue +++ b/src/components/NotificationDialog.vue @@ -80,6 +80,10 @@ export default { components: { Confirm, }, + beforeRouteLeave(to, from, next) { + this.cleanupModal(); + next(); + }, props: {}, emits: [ "added" ], data() { @@ -236,10 +240,6 @@ export default { beforeUnmount() { this.cleanupModal(); }, - beforeRouteLeave(to, from, next) { - this.cleanupModal(); - next(); - }, methods: { /**