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:
+8
-1
@@ -147,12 +147,19 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
@Output()
|
@Output()
|
||||||
editableCategoriesChange = new EventEmitter<boolean>();
|
editableCategoriesChange = new EventEmitter<boolean>();
|
||||||
|
|
||||||
|
/** Emitted when content's group state is changed. **/
|
||||||
|
@Output()
|
||||||
|
groupChange = new EventEmitter<CardViewGroup>();
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
editableCategories = false;
|
editableCategories = false;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
editableTags = false;
|
editableTags = false;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
group: CardViewGroup;
|
||||||
|
|
||||||
private _assignedTags: string[] = [];
|
private _assignedTags: string[] = [];
|
||||||
private assignedTagsEntries: TagEntry[] = [];
|
private assignedTagsEntries: TagEntry[] = [];
|
||||||
private _editable = false;
|
private _editable = false;
|
||||||
@@ -180,7 +187,6 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
hasAllowableOperations = false;
|
hasAllowableOperations = false;
|
||||||
editableGroup: CardViewGroup;
|
editableGroup: CardViewGroup;
|
||||||
buttonType = ButtonType;
|
buttonType = ButtonType;
|
||||||
group: CardViewGroup;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private contentMetadataService: ContentMetadataService,
|
private contentMetadataService: ContentMetadataService,
|
||||||
@@ -403,6 +409,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
|
|
||||||
case ButtonType.Group:
|
case ButtonType.Group:
|
||||||
group.editable = !group.editable;
|
group.editable = !group.editable;
|
||||||
|
this.groupChange.emit(group);
|
||||||
this.editableGroup = group.editable ? group : null;
|
this.editableGroup = group.editable ? group : null;
|
||||||
if (group.editable) {
|
if (group.editable) {
|
||||||
group.expanded = true;
|
group.expanded = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user