Skip to content

Commit

Permalink
Fix settings UI copying SMTP values on 'new'
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 10, 2020
1 parent f667935 commit 409b259
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions frontend/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 409b259

Please sign in to comment.