mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-15975] Prevent dialogs from overlapping interactive top menu bars (#13251)
This commit is contained in:
@@ -14,11 +14,5 @@
|
||||
>
|
||||
{{ "clearHistory" | i18n }}
|
||||
</button>
|
||||
<!-- FIXME: Remove the close button once the dialog doesn't overlap electron's
|
||||
drag area.
|
||||
-->
|
||||
<button bitButton type="submit" buttonType="secondary" (click)="close()">
|
||||
{{ "close" | i18n }}
|
||||
</button>
|
||||
</ng-container>
|
||||
</bit-dialog>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { DialogRef } from "@angular/cdk/dialog";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component } from "@angular/core";
|
||||
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
||||
@@ -35,7 +34,6 @@ export class CredentialGeneratorHistoryDialogComponent {
|
||||
private accountService: AccountService,
|
||||
private history: GeneratorHistoryService,
|
||||
private dialogService: DialogService,
|
||||
private dialogRef: DialogRef,
|
||||
) {
|
||||
this.accountService.activeAccount$
|
||||
.pipe(
|
||||
@@ -54,11 +52,6 @@ export class CredentialGeneratorHistoryDialogComponent {
|
||||
.subscribe(this.hasHistory$);
|
||||
}
|
||||
|
||||
/** closes the dialog */
|
||||
protected close() {
|
||||
this.dialogRef.close();
|
||||
}
|
||||
|
||||
/** Launches clear history flow */
|
||||
protected async clear() {
|
||||
const confirmed = await this.dialogService.openSimpleDialog({
|
||||
|
||||
Reference in New Issue
Block a user