mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PM-18278] fix conditional in template (#13392)
* fix conditional in template * update comment
This commit is contained in:
@@ -104,8 +104,8 @@
|
|||||||
*ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned && organization"
|
*ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned && organization"
|
||||||
class="tw-shrink-0"
|
class="tw-shrink-0"
|
||||||
>
|
>
|
||||||
<!-- "New" menu is always shown unless the user cannot create a cipher -->
|
<!-- "New" menu is always shown unless the user cannot create a cipher and cannot create a collection-->
|
||||||
<ng-container *ngIf="canCreateCipher">
|
<ng-container *ngIf="canCreateCipher || canCreateCollection">
|
||||||
<div appListDropdown>
|
<div appListDropdown>
|
||||||
<button
|
<button
|
||||||
bitButton
|
bitButton
|
||||||
@@ -119,24 +119,26 @@
|
|||||||
{{ "new" | i18n }}<i class="bwi tw-ml-2" aria-hidden="true"></i>
|
{{ "new" | i18n }}<i class="bwi tw-ml-2" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
<bit-menu #addOptions aria-labelledby="newItemDropdown">
|
<bit-menu #addOptions aria-labelledby="newItemDropdown">
|
||||||
<button type="button" bitMenuItem (click)="addCipher(CipherType.Login)">
|
<ng-container *ngIf="canCreateCipher">
|
||||||
<i class="bwi bwi-globe" slot="start" aria-hidden="true"></i>
|
<button type="button" bitMenuItem (click)="addCipher(CipherType.Login)">
|
||||||
{{ "typeLogin" | i18n }}
|
<i class="bwi bwi-globe" slot="start" aria-hidden="true"></i>
|
||||||
</button>
|
{{ "typeLogin" | i18n }}
|
||||||
<button type="button" bitMenuItem (click)="addCipher(CipherType.Card)">
|
</button>
|
||||||
<i class="bwi bwi-credit-card" slot="start" aria-hidden="true"></i>
|
<button type="button" bitMenuItem (click)="addCipher(CipherType.Card)">
|
||||||
{{ "typeCard" | i18n }}
|
<i class="bwi bwi-credit-card" slot="start" aria-hidden="true"></i>
|
||||||
</button>
|
{{ "typeCard" | i18n }}
|
||||||
<button type="button" bitMenuItem (click)="addCipher(CipherType.Identity)">
|
</button>
|
||||||
<i class="bwi bwi-id-card" slot="start" aria-hidden="true"></i>
|
<button type="button" bitMenuItem (click)="addCipher(CipherType.Identity)">
|
||||||
{{ "typeIdentity" | i18n }}
|
<i class="bwi bwi-id-card" slot="start" aria-hidden="true"></i>
|
||||||
</button>
|
{{ "typeIdentity" | i18n }}
|
||||||
<button type="button" bitMenuItem (click)="addCipher(CipherType.SecureNote)">
|
</button>
|
||||||
<i class="bwi bwi-sticky-note" slot="start" aria-hidden="true"></i>
|
<button type="button" bitMenuItem (click)="addCipher(CipherType.SecureNote)">
|
||||||
{{ "note" | i18n }}
|
<i class="bwi bwi-sticky-note" slot="start" aria-hidden="true"></i>
|
||||||
</button>
|
{{ "note" | i18n }}
|
||||||
|
</button>
|
||||||
|
</ng-container>
|
||||||
<ng-container *ngIf="canCreateCollection">
|
<ng-container *ngIf="canCreateCollection">
|
||||||
<bit-menu-divider></bit-menu-divider>
|
<bit-menu-divider *ngIf="canCreateCipher"></bit-menu-divider>
|
||||||
<button type="button" bitMenuItem (click)="addCollection()">
|
<button type="button" bitMenuItem (click)="addCollection()">
|
||||||
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
<i class="bwi bwi-fw bwi-collection" aria-hidden="true"></i>
|
||||||
{{ "collection" | i18n }}
|
{{ "collection" | i18n }}
|
||||||
|
|||||||
Reference in New Issue
Block a user