Fix settings UI copying SMTP values on 'new'

This commit is contained in:
Kailash Nadh 2020-10-10 21:35:09 +05:30
parent f667935a82
commit 409b259fd3
1 changed files with 16 additions and 2 deletions

View File

@ -494,8 +494,22 @@ export default Vue.extend({
methods: { methods: {
addSMTP() { addSMTP() {
const [data] = JSON.parse(JSON.stringify(this.form.smtp.slice(-1))); this.form.smtp.push({
this.form.smtp.push(data); 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) { removeSMTP(i) {