mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[AC-2500] Update inline menu for collections based on collection permissions (#9080)
* Add view collection options to collection row menus * Prevent DeleteAnyCollection custom users from viewing collections
This commit is contained in:
@@ -30,9 +30,11 @@ export class VaultCollectionRowComponent {
|
||||
@Input() showGroups: boolean;
|
||||
@Input() canEditCollection: boolean;
|
||||
@Input() canDeleteCollection: boolean;
|
||||
@Input() canViewCollectionInfo: boolean;
|
||||
@Input() organizations: Organization[];
|
||||
@Input() groups: GroupView[];
|
||||
@Input() showPermissionsColumn: boolean;
|
||||
@Input() flexibleCollectionsV1Enabled: boolean;
|
||||
|
||||
@Output() onEvent = new EventEmitter<VaultItemEvent>();
|
||||
|
||||
@@ -71,12 +73,12 @@ export class VaultCollectionRowComponent {
|
||||
return "";
|
||||
}
|
||||
|
||||
protected edit() {
|
||||
this.onEvent.next({ type: "editCollection", item: this.collection });
|
||||
protected edit(readonly: boolean) {
|
||||
this.onEvent.next({ type: "editCollection", item: this.collection, readonly: readonly });
|
||||
}
|
||||
|
||||
protected access() {
|
||||
this.onEvent.next({ type: "viewCollectionAccess", item: this.collection });
|
||||
protected access(readonly: boolean) {
|
||||
this.onEvent.next({ type: "viewCollectionAccess", item: this.collection, readonly: readonly });
|
||||
}
|
||||
|
||||
protected deleteCollection() {
|
||||
|
||||
Reference in New Issue
Block a user