mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]fixed errors
This commit is contained in:
+4
-6
@@ -368,6 +368,10 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.editableGroup && this.editableGroup !== group) {
|
||||||
|
this.editableGroup.editable = false;
|
||||||
|
}
|
||||||
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
switch (buttonType) {
|
switch (buttonType) {
|
||||||
@@ -376,27 +380,21 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
this.panel.open();
|
this.panel.open();
|
||||||
this.editableTags = false;
|
this.editableTags = false;
|
||||||
this.editableCategories = false;
|
this.editableCategories = false;
|
||||||
this.editableGroup.editable = false;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ButtonType.Tags:
|
case ButtonType.Tags:
|
||||||
this.editableTags = !this.editableTags;
|
this.editableTags = !this.editableTags;
|
||||||
this.tagsPanelState = this.editableTags;
|
this.tagsPanelState = this.editableTags;
|
||||||
this.tagNameControlVisible = true;
|
this.tagNameControlVisible = true;
|
||||||
this.editableGroup.editable = false;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ButtonType.Categories:
|
case ButtonType.Categories:
|
||||||
this.editableCategories = !this.editableCategories;
|
this.editableCategories = !this.editableCategories;
|
||||||
this.categoriesPanelState = this.editableCategories;
|
this.categoriesPanelState = this.editableCategories;
|
||||||
this.categoryControlVisible = true;
|
this.categoryControlVisible = true;
|
||||||
this.editableGroup.editable = false;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ButtonType.Group:
|
case ButtonType.Group:
|
||||||
if (this.editableGroup && this.editableGroup !== group) {
|
|
||||||
this.editableGroup.editable = false;
|
|
||||||
}
|
|
||||||
group.editable = !group.editable;
|
group.editable = !group.editable;
|
||||||
this.editableChange.emit(this.editable);
|
this.editableChange.emit(this.editable);
|
||||||
this.editableGroup = group.editable ? group : null;
|
this.editableGroup = group.editable ? group : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user