This commit is contained in:
Park Byung Eun 2022-08-24 12:42:43 +00:00
parent 9a7eaba5fc
commit f49e8a1fb7

View File

@ -510,11 +510,14 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
this._memberService this._memberService
.updateMemberForPassword(req) .updateMemberForPassword(req)
.then((result) => { .then((result) => {
this.changePasswordResultShowAlert = true;
this.alertConfig = { this.alertConfig = {
type: 'success', type: 'success',
message: '비밀번호가 수정 되었습니다.', message: '비밀번호가 수정 되었습니다.',
}; };
this.changePasswordResultShowAlert = true;
this._changeDetectorRef.markForCheck();
}) })
.catch((reson) => { .catch((reson) => {
this.changePasswordResultShowAlert = true; this.changePasswordResultShowAlert = true;
@ -523,6 +526,7 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy {
type: 'error', type: 'error',
message: '패스워드 변경이 실패하였습니다.', message: '패스워드 변경이 실패하였습니다.',
}; };
this._changeDetectorRef.markForCheck();
}) })
.finally(() => this.closeChangePasswordAlert()); .finally(() => this.closeChangePasswordAlert());
} }