[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

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);