[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:
parent
6924d031ee
commit
5182918faa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue