diff --git a/src/app/modules/admin/game/casino/components/list.component.html b/src/app/modules/admin/game/casino/components/list.component.html index 2696da9..bba6b7b 100644 --- a/src/app/modules/admin/game/casino/components/list.component.html +++ b/src/app/modules/admin/game/casino/components/list.component.html @@ -144,7 +144,7 @@
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 0442cf8..fe9415d 100644 --- a/src/app/modules/admin/member/user/components/view.component.ts +++ b/src/app/modules/admin/member/user/components/view.component.ts @@ -98,6 +98,8 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { isLoading = false; searchInputControl = new FormControl(); + preMatSelectMeberState!: { value: number; label: string }; + memberStateOptions = [ { value: 1, @@ -742,20 +744,20 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { } onSelectionChangeState(event: MatSelectChange) { - const state = event.value; - - if (!state) { - this.showAlert('error', '상태값이 선택 되지 않았습니다.'); - - this.closeChangePasswordAlert(); - return; - } - this.showConfirmAlert( this.alertTitle, '회원 상태를 수정하시겠습니까?' ).then((result) => { if (!!result) { + const state = event.value; + + if (!state) { + this.showAlert('error', '상태값이 선택 되지 않았습니다.'); + + this.closeChangePasswordAlert(); + return; + } + const req = new UpdateMemberForStateRequest(); req.setId(this.currentMember!.getId()); req.setState(state); @@ -769,6 +771,10 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { this.showAlert('error', '회원 상태 변경이 실패하였습니다.'); }) .finally(() => this.closeChangePasswordAlert()); + } else { + this.memberDefaultForm + .get('state') + ?.setValue(this.currentMember?.getState()); } }); }