1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00: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

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>