diff --git a/ui/src/views/Settings.vue b/ui/src/views/Settings.vue index dd25fcf..fae2231 100644 --- a/ui/src/views/Settings.vue +++ b/ui/src/views/Settings.vue @@ -32,40 +32,28 @@ ref="host" > - - - - - + { + this.mail_server = config.mail_server; + }); + this.mail_server_URL = config.mail_server_URL; this.loading.getConfiguration = false; this.focusElement("host"); }, @@ -249,7 +240,14 @@ export default { } isValidationOk = false; } + if (!this.mail_server) { + this.error.mail_server = "common.required"; + if (isValidationOk) { + this.focusElement("mail_server"); + } + isValidationOk = false; + } return isValidationOk; }, configureModuleValidationFailed(validationErrors) { @@ -300,7 +298,7 @@ export default { action: taskAction, data: { host: this.host, - imap_host: this.imap_host, + mail_server: this.mail_server, lets_encrypt: this.isLetsEncryptEnabled, http2https: this.isHttpToHttpsEnabled, },