warnings fix :)

This commit is contained in:
mohit-nagaraj 2024-10-08 09:10:36 +05:30
parent 72849de1b4
commit 56b3cf412b
No known key found for this signature in database
3 changed files with 22 additions and 29 deletions

View file

@ -33,27 +33,27 @@
import { Modal } from "bootstrap";
export default {
beforeRouteLeave(to, from, next) {
this.cleanupModal();
next();
},
props: {},
emits: [ "added" ],
data: () => ({
modal: null,
groupName: null,
}),
mounted() {
this.modal = new Modal(this.$refs.modal);
},
watch: {
$route(to, from) {
this.cleanupModal();
}
},
mounted() {
this.modal = new Modal(this.$refs.modal);
},
beforeUnmount() {
this.cleanupModal();
},
beforeRouteLeave(to, from, next) {
this.cleanupModal();
next();
},
methods: {
/**
* Show the confirm dialog

View file

@ -105,6 +105,10 @@ export default {
components: {
Confirm,
},
beforeRouteLeave(to, from, next) {
this.cleanupModal();
next();
},
props: {},
emits: [ "added" ],
data() {
@ -125,26 +129,17 @@ export default {
}
};
},
mounted() {
this.modal = new Modal(this.$refs.modal);
},
beforeRouteLeave(to, from, next) {
this.cleanupModal();
next();
},
watch: {
$route(to, from) {
this.cleanupModal();
}
},
mounted() {
this.modal = new Modal(this.$refs.modal);
},
beforeUnmount() {
this.cleanupModal();
},
methods: {
/**
* Show dialog to confirm deletion

View file

@ -155,6 +155,10 @@ export default {
Tag,
VueMultiselect,
},
beforeRouteLeave(to, from, next) {
this.cleanupModal();
next();
},
props: {
/**
* Array of tags to be pre-selected
@ -244,21 +248,15 @@ export default {
};
},
},
mounted() {
this.modal = new Modal(this.$refs.modal);
this.getExistingTags();
},
beforeRouteLeave(to, from, next) {
this.cleanupModal();
next();
},
watch: {
$route(to, from) {
this.cleanupModal();
}
},
mounted() {
this.modal = new Modal(this.$refs.modal);
this.getExistingTags();
},
beforeUnmount() {
this.cleanupModal();
},