1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 13:10:17 +00:00

optional dialogRef

This commit is contained in:
William Martin
2025-04-16 17:04:53 -04:00
parent 72cb0dd5f0
commit 06c9b70ba0
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
@let isDrawer = dialogRef.isDrawer;
@let isDrawer = dialogRef?.isDrawer;
<section
class="tw-flex tw-w-full tw-flex-col tw-self-center tw-overflow-hidden tw-border tw-border-solid tw-border-secondary-300 tw-bg-background tw-text-main"
[ngClass]="[width, isDrawer ? 'tw-h-screen tw-border-t-0' : 'tw-rounded-xl']"

View File

@@ -33,7 +33,7 @@ import { DialogTitleContainerDirective } from "../directives/dialog-title-contai
],
})
export class DialogComponent {
protected dialogRef = inject(DialogRef);
protected dialogRef = inject(DialogRef, { optional: true });
/** Background color */
@Input()