Browse Source

Move default setting to child component

pull/427/head
zsxeee 4 years ago
parent
commit
ffbc25722d
No known key found for this signature in database GPG Key ID: 895CFFFD8313B3B8
  1. 2
      src/components/NotificationDialog.vue
  2. 5
      src/components/notifications/Gotify.vue
  3. 5
      src/components/notifications/SMTP.vue

2
src/components/NotificationDialog.vue

@ -150,8 +150,6 @@ export default {
// Set Default value here
this.notification.type = this.notificationTypes[0];
this.notification.gotifyPriority = 8;
this.notification.smtpSecure = false;
}
this.modal.show()

5
src/components/notifications/Gotify.vue

@ -23,5 +23,10 @@ export default {
components: {
HiddenInput,
},
mounted() {
if (typeof this.$parent.notification.gotifyPriority === "undefined") {
this.$parent.notification.gotifyPriority = 8;
}
},
}
</script>

5
src/components/notifications/SMTP.vue

@ -66,5 +66,10 @@ export default {
components: {
HiddenInput,
},
mounted() {
if (typeof this.$parent.notification.smtpSecure === "undefined") {
this.$parent.notification.smtpSecure = false;
}
},
}
</script>

Loading…
Cancel
Save