From f49e8a1fb7dbda8698076effc192a6a4284c2a6e Mon Sep 17 00:00:00 2001 From: Park Byung Eun Date: Wed, 24 Aug 2022 12:42:43 +0000 Subject: [PATCH] bug fix --- .../modules/admin/member/user/components/view.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/modules/admin/member/user/components/view.component.ts b/src/app/modules/admin/member/user/components/view.component.ts index 0f056e2..1e143bc 100644 --- a/src/app/modules/admin/member/user/components/view.component.ts +++ b/src/app/modules/admin/member/user/components/view.component.ts @@ -510,11 +510,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { this._memberService .updateMemberForPassword(req) .then((result) => { + this.changePasswordResultShowAlert = true; + this.alertConfig = { type: 'success', message: '비밀번호가 수정 되었습니다.', }; - this.changePasswordResultShowAlert = true; + + this._changeDetectorRef.markForCheck(); }) .catch((reson) => { this.changePasswordResultShowAlert = true; @@ -523,6 +526,7 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { type: 'error', message: '패스워드 변경이 실패하였습니다.', }; + this._changeDetectorRef.markForCheck(); }) .finally(() => this.closeChangePasswordAlert()); }