[PM-4357] remove disableClose on BrowserSyncVerificationDialog and AwaitDesktopDialog (#6730)

* remove disableClose on BrowserSyncVerificationDialogComponent

* remove disableClose from AwaitDesktopDialogComponent
This commit is contained in:
Will Martin 2023-10-30 12:24:26 -04:00 committed by GitHub
parent b9e8f61831
commit c325e996f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 7 deletions

View File

@ -4,7 +4,7 @@
{{ "awaitDesktopDesc" | i18n }}
</span>
<ng-container bitDialogFooter>
<button bitButton type="button" buttonType="secondary" [bitDialogClose]="true">
<button bitButton type="button" buttonType="secondary" [bitDialogClose]="false">
{{ "close" | i18n }}
</button>
</ng-container>

View File

@ -10,8 +10,6 @@ import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components
})
export class AwaitDesktopDialogComponent {
static open(dialogService: DialogService) {
return dialogService.open<boolean>(AwaitDesktopDialogComponent, {
disableClose: true,
});
return dialogService.open<boolean>(AwaitDesktopDialogComponent);
}
}

View File

@ -370,7 +370,7 @@ export class SettingsComponent implements OnInit {
await Promise.race([
awaitDesktopDialogClosed.then(async (result) => {
if (result) {
if (result !== true) {
this.form.controls.biometric.setValue(false);
await this.stateService.setBiometricAwaitingAcceptance(null);
}
@ -402,7 +402,7 @@ export class SettingsComponent implements OnInit {
});
})
.finally(() => {
awaitDesktopDialogRef.close(false);
awaitDesktopDialogRef.close(true);
}),
]);
} else {

View File

@ -19,7 +19,6 @@ export class BrowserSyncVerificationDialogComponent {
static open(dialogService: DialogService, data: BrowserSyncVerificationDialogParams) {
return dialogService.open(BrowserSyncVerificationDialogComponent, {
data,
disableClose: true,
});
}
}