mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[AC-2115] Hide delete collection button in collection dialog (#7757)
* [AC-2115] Hide delete collection button based on collection management setting * [AC-2115] Copy manage flag from sync'd collection
This commit is contained in:
@@ -213,8 +213,8 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
|
|||||||
parent,
|
parent,
|
||||||
access: accessSelections,
|
access: accessSelections,
|
||||||
});
|
});
|
||||||
|
this.collection.manage = collection?.manage ?? false; // Get manage flag from sync data collection
|
||||||
this.showDeleteButton = this.collection.canDelete(organization) || collection?.manage;
|
this.showDeleteButton = this.collection.canDelete(organization);
|
||||||
} else {
|
} else {
|
||||||
this.nestOptions = collections;
|
this.nestOptions = collections;
|
||||||
const parent = collections.find((c) => c.id === this.params.parentCollectionId);
|
const parent = collections.find((c) => c.id === this.params.parentCollectionId);
|
||||||
|
|||||||
Reference in New Issue
Block a user