1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +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:
Shane Melton
2024-02-01 09:07:14 -08:00
committed by GitHub
parent 6924d031ee
commit 5182918faa

View File

@@ -213,8 +213,8 @@ export class CollectionDialogComponent implements OnInit, OnDestroy {
parent,
access: accessSelections,
});
this.showDeleteButton = this.collection.canDelete(organization) || collection?.manage;
this.collection.manage = collection?.manage ?? false; // Get manage flag from sync data collection
this.showDeleteButton = this.collection.canDelete(organization);
} else {
this.nestOptions = collections;
const parent = collections.find((c) => c.id === this.params.parentCollectionId);