From 409b259fd314564c4b8e12ce2fd4606fd9372ed0 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 10 Oct 2020 21:35:09 +0530 Subject: [PATCH] Fix settings UI copying SMTP values on 'new' --- frontend/src/views/Settings.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue index 133842c..aa27568 100644 --- a/frontend/src/views/Settings.vue +++ b/frontend/src/views/Settings.vue @@ -494,8 +494,22 @@ export default Vue.extend({ methods: { addSMTP() { - const [data] = JSON.parse(JSON.stringify(this.form.smtp.slice(-1))); - this.form.smtp.push(data); + this.form.smtp.push({ + enabled: true, + host: '', + hello_hostname: '', + port: 587, + auth_protocol: 'none', + username: '', + password: '', + email_headers: [], + max_conns: 10, + max_msg_retries: 2, + idle_timeout: '15s', + wait_timeout: '5s', + tls_enabled: true, + tls_skip_verify: false, + }); }, removeSMTP(i) {