mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-01 02:34:03 +00:00
Move default setting to child component
This commit is contained in:
parent
2fb3c40307
commit
ffbc25722d
3 changed files with 10 additions and 2 deletions
|
@ -150,8 +150,6 @@ export default {
|
||||||
|
|
||||||
// Set Default value here
|
// Set Default value here
|
||||||
this.notification.type = this.notificationTypes[0];
|
this.notification.type = this.notificationTypes[0];
|
||||||
this.notification.gotifyPriority = 8;
|
|
||||||
this.notification.smtpSecure = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.modal.show()
|
this.modal.show()
|
||||||
|
|
|
@ -23,5 +23,10 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
HiddenInput,
|
HiddenInput,
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (typeof this.$parent.notification.gotifyPriority === "undefined") {
|
||||||
|
this.$parent.notification.gotifyPriority = 8;
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -66,5 +66,10 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
HiddenInput,
|
HiddenInput,
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (typeof this.$parent.notification.smtpSecure === "undefined") {
|
||||||
|
this.$parent.notification.smtpSecure = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue