mirror of
https://github.com/bitwarden/browser
synced 2026-02-09 13:10:17 +00:00
optional dialogRef
This commit is contained in:
@@ -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']"
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user