mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]fixes linting
This commit is contained in:
committed by
Anukriti Singh
parent
1a5a23184e
commit
ff78d6495d
+11
-11
@@ -348,9 +348,9 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
isEditingPanel(): boolean {
|
isEditingPanel(): boolean {
|
||||||
return (
|
return (
|
||||||
(this.editable && this.hasMetadataChanged) ||
|
(this.editable && this.hasMetadataChanged) ||
|
||||||
(this.editableTags && this.hasMetadataChanged ) ||
|
(this.editableTags && this.hasMetadataChanged) ||
|
||||||
(this.editableCategories && this.hasMetadataChanged) ||
|
(this.editableCategories && this.hasMetadataChanged) ||
|
||||||
((this.editableGroup?.editable) && this.hasMetadataChanged)
|
(this.editableGroup?.editable && this.hasMetadataChanged)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -373,7 +373,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
switch (buttonType) {
|
switch (buttonType) {
|
||||||
case ButtonType.GeneralInfo:
|
case ButtonType.GeneralInfo:
|
||||||
this.editable = !this.editable;
|
this.editable = !this.editable;
|
||||||
@@ -381,19 +381,19 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
this.editableTags = false;
|
this.editableTags = false;
|
||||||
this.editableCategories = false;
|
this.editableCategories = 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;
|
||||||
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;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ButtonType.Group:
|
case ButtonType.Group:
|
||||||
group.editable = !group.editable;
|
group.editable = !group.editable;
|
||||||
this.editableChange.emit(this.editable);
|
this.editableChange.emit(this.editable);
|
||||||
@@ -402,19 +402,19 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
group.expanded = true;
|
group.expanded = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttonType !== ButtonType.GeneralInfo) {
|
if (buttonType !== ButtonType.GeneralInfo) {
|
||||||
this.editable = false;
|
this.editable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttonType !== ButtonType.Tags) {
|
if (buttonType !== ButtonType.Tags) {
|
||||||
this.editableTags = false;
|
this.editableTags = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttonType !== ButtonType.Categories) {
|
if (buttonType !== ButtonType.Categories) {
|
||||||
this.editableCategories = false;
|
this.editableCategories = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user