From a7d4919f15f3f625ac2c805c23ddf5a30498dd3b Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 23 Apr 2024 17:29:04 +0200 Subject: [PATCH] Update mail server configuration in Settings.vue --- ui/src/views/Settings.vue | 70 +++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 36 deletions(-) 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, },