[ACS-5645] added group panel lock changes

This commit is contained in:
Yasa-Nataliya
2023-10-09 20:22:06 +05:30
parent 0c1f6b68b7
commit db930c7ddf
@@ -147,12 +147,19 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
@Output()
editableCategoriesChange = new EventEmitter<boolean>();
/** Emitted when content's group state is changed. **/
@Output()
groupChange = new EventEmitter<CardViewGroup>();
@Input()
editableCategories = false;
@Input()
editableTags = false;
@Input()
group: CardViewGroup;
private _assignedTags: string[] = [];
private assignedTagsEntries: TagEntry[] = [];
private _editable = false;
@@ -180,7 +187,6 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
hasAllowableOperations = false;
editableGroup: CardViewGroup;
buttonType = ButtonType;
group: CardViewGroup;
constructor(
private contentMetadataService: ContentMetadataService,
@@ -403,6 +409,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
case ButtonType.Group:
group.editable = !group.editable;
this.groupChange.emit(group);
this.editableGroup = group.editable ? group : null;
if (group.editable) {
group.expanded = true;