From db33193a042156805e446ce67d208b5f832ff99f Mon Sep 17 00:00:00 2001 From: Yasa-Nataliya Date: Wed, 20 Sep 2023 10:02:40 +0530 Subject: [PATCH] [ACS-5645] fixed lock-file bug --- .../content-metadata/content-metadata.component.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts index b51c1bee11..57b19c0b51 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts @@ -147,12 +147,19 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy { @Output() editableCategoriesChange = new EventEmitter(); + /** Emitted when content's group state is changed. **/ + @Output() + groupChange = new EventEmitter(); + @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, @@ -404,6 +410,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;