mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
warnings fix :)
This commit is contained in:
parent
72849de1b4
commit
56b3cf412b
3 changed files with 22 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue