1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

Fix broken Storybook: Change ng-template to ng-container for ngIf and rename icon directive (#4816)

* remove added template for ngIf and rename icon directive

* fix regression in product switcher

* fix text color of bulk delete in org vault

* use ng-container for *ngIf
This commit is contained in:
Jake Fink
2023-02-24 11:19:09 -05:00
committed by GitHub
parent 7317661457
commit 84d211fb56
6 changed files with 14 additions and 11 deletions

View File

@@ -3,9 +3,9 @@
@fadeIn
>
<div class="tw-flex tw-flex-col tw-items-center tw-gap-2 tw-px-4 tw-pt-4 tw-text-center">
<ng-template *ngIf="hasIcon; else elseBlock">
<ng-content select="[bit-dialog-icon]"></ng-content>
</ng-template>
<ng-container *ngIf="hasIcon; else elseBlock">
<ng-content select="[bitDialogIcon]"></ng-content>
</ng-container>
<ng-template #elseBlock>
<i class="bwi bwi-exclamation-triangle tw-text-3xl tw-text-warning" aria-hidden="true"></i>
</ng-template>