PM-2055 Added close to disable two factor

This commit is contained in:
KiruthigaManivannan 2024-05-18 06:20:52 +05:30
parent f2dd6e8bf8
commit e0a8edd6c2
2 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,7 @@
<button bitButton bitFormButton type="submit" buttonType="primary">
{{ (enabled ? "disable" : "enable") | i18n }}
</button>
<button bitButton bitFormButton type="button" buttonType="secondary" [bitAction]="onClose">
<button bitButton bitFormButton type="button" buttonType="secondary" [bitAction]="close">
{{ "close" | i18n }}
</button>
</ng-container>

View File

@ -92,6 +92,7 @@ export class TwoFactorAuthenticatorComponent
submit = async () => {
if (this.enabled) {
await this.disableAuthentication(this.formPromise);
this.close();
} else {
await this.enable();
}
@ -134,7 +135,7 @@ export class TwoFactorAuthenticatorComponent
}, 100);
}
onClose = () => {
close = () => {
this.dialogRef.close(this.enabled);
};