bug fixed
This commit is contained in:
parent
e651e6f7b5
commit
2d99b7c4c8
|
@ -16,7 +16,8 @@ import {
|
||||||
DialogService,
|
DialogService,
|
||||||
ConfirmDialogComponent,
|
ConfirmDialogComponent,
|
||||||
ConfirmDialogData,
|
ConfirmDialogData,
|
||||||
ConfirmDialogResult
|
ConfirmDialogResult,
|
||||||
|
SnackBarService
|
||||||
} from '@ucap-webmessenger/ui';
|
} from '@ucap-webmessenger/ui';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -362,6 +363,40 @@ export class Effects {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
userPasswordSetSuccess$ = createEffect(
|
||||||
|
() => {
|
||||||
|
return this.actions$.pipe(
|
||||||
|
ofType(userPasswordSetSuccess),
|
||||||
|
tap(action => {
|
||||||
|
this.snackBarService.open(`비밀번호 변경이 완료 되었습니다`, '', {
|
||||||
|
duration: 3000,
|
||||||
|
verticalPosition: 'bottom'
|
||||||
|
});
|
||||||
|
})
|
||||||
|
);
|
||||||
|
},
|
||||||
|
{ dispatch: false }
|
||||||
|
);
|
||||||
|
|
||||||
|
userPasswordSetFailure$ = createEffect(
|
||||||
|
() => {
|
||||||
|
return this.actions$.pipe(
|
||||||
|
ofType(userPasswordSetFailure),
|
||||||
|
tap(action => {
|
||||||
|
this.snackBarService.open(
|
||||||
|
`비밀번호 변경 중에 문제가 발생하였습니다.`,
|
||||||
|
'',
|
||||||
|
{
|
||||||
|
duration: 3000,
|
||||||
|
verticalPosition: 'bottom'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
},
|
||||||
|
{ dispatch: false }
|
||||||
|
);
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private actions$: Actions,
|
private actions$: Actions,
|
||||||
private ngZone: NgZone,
|
private ngZone: NgZone,
|
||||||
|
@ -374,6 +409,7 @@ export class Effects {
|
||||||
private authenticationProtocolService: AuthenticationProtocolService,
|
private authenticationProtocolService: AuthenticationProtocolService,
|
||||||
private serviceProtocolService: ServiceProtocolService,
|
private serviceProtocolService: ServiceProtocolService,
|
||||||
private dialogService: DialogService,
|
private dialogService: DialogService,
|
||||||
|
private snackBarService: SnackBarService,
|
||||||
@Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService,
|
@Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService,
|
||||||
private logger: NGXLogger
|
private logger: NGXLogger
|
||||||
) {}
|
) {}
|
||||||
|
|
|
@ -147,8 +147,10 @@ export class ChangePasswordComponent implements OnInit {
|
||||||
|
|
||||||
onClickChangePassword() {
|
onClickChangePassword() {
|
||||||
this.changePassword.emit({
|
this.changePassword.emit({
|
||||||
currentLoginPw: this.currentLoginPwFormControl.value,
|
currentLoginPw: PasswordUtil.encrypt(
|
||||||
newLoginPw: this.newLoginPwFormControl.value
|
this.currentLoginPwFormControl.value
|
||||||
|
),
|
||||||
|
newLoginPw: PasswordUtil.encrypt(this.newLoginPwFormControl.value)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
import { BottomSheetService } from './bottom-sheet.service';
|
import { SnackBarService } from './snack-bar.service';
|
||||||
|
|
||||||
describe('ui::BottomSheetService', () => {
|
describe('ui::SnackBarService', () => {
|
||||||
beforeEach(() => TestBed.configureTestingModule({}));
|
beforeEach(() => TestBed.configureTestingModule({}));
|
||||||
|
|
||||||
it('should be created', () => {
|
it('should be created', () => {
|
||||||
const service: BottomSheetService = TestBed.get(BottomSheetService);
|
const service: SnackBarService = TestBed.get(SnackBarService);
|
||||||
expect(service).toBeTruthy();
|
expect(service).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user