PM-2055 Added close to disable two factor
This commit is contained in:
parent
f2dd6e8bf8
commit
e0a8edd6c2
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue