fix(app): notification modal fix

pull/5189/head
mohit-nagaraj 3 months ago
parent 401710c3bd
commit 1dceb96c7c
No known key found for this signature in database

@ -226,10 +226,26 @@ export default {
this.notification.name = this.getUniqueDefaultName(to); this.notification.name = this.getUniqueDefaultName(to);
} }
}, },
$route(to, from) {
if (this.modal) {
this.modal.hide();
}
}
}, },
mounted() { mounted() {
this.modal = new Modal(this.$refs.modal); 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: { methods: {
/** /**

Loading…
Cancel
Save