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: { /**