1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00

[AC-2627] Empty Collection New Item Btn Permissions (#11089)

* only show new item btn in empty collection for can edit perm
This commit is contained in:
Jason Ng 2024-09-17 14:28:39 -04:00 committed by GitHub
parent d68853a4a2
commit d0516f24e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,11 @@
(click)="addCipher()"
buttonType="primary"
type="button"
*ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned"
*ngIf="
filter.type !== 'trash' &&
filter.collectionId !== Unassigned &&
selectedCollection?.node?.canEditItems(organization)
"
>
<i aria-hidden="true" class="bwi bwi-plus"></i> {{ "newItem" | i18n }}
</button>