From 9b57e14587db650753b2d2646a5695c3f5f6f75e Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 14 Jul 2021 13:30:03 +0300 Subject: [PATCH] UI: Fixed clear password after save SMTP settings --- .../src/app/modules/home/pages/admin/mail-server.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts index 025601ca76..1d86318e8d 100644 --- a/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts +++ b/ui-ngx/src/app/modules/home/pages/admin/mail-server.component.ts @@ -116,6 +116,9 @@ export class MailServerComponent extends PageComponent implements OnInit, HasCon this.adminSettings.jsonValue = {...this.adminSettings.jsonValue, ...this.mailSettings.value}; this.adminService.saveAdminSettings(this.adminSettings).subscribe( (adminSettings) => { + if (!adminSettings.jsonValue.password) { + adminSettings.jsonValue.password = this.mailSettings.value.password; + } this.adminSettings = adminSettings; this.mailSettings.reset(this.adminSettings.jsonValue); }