1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +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, 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);