fix(app): Fix proxy modal test

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

@ -130,6 +130,27 @@ export default {
this.modal = new Modal(this.$refs.modal);
},
beforeRouteLeave(to, from, next) {
if (this.modal) {
this.modal.hide();
}
next();
},
watch: {
$route(to, from) {
if (this.modal) {
this.modal.hide();
}
}
},
beforeUnmount() {
if (this.modal) {
this.modal.dispose();
}
},
methods: {
/**
* Show dialog to confirm deletion

Loading…
Cancel
Save