mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645] added group panel lock changes
This commit is contained in:
committed by
Anukriti Singh
parent
4b76e5beb9
commit
2223e46979
+8
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user