mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]Implemented changes as per the review comments
This commit is contained in:
committed by
Anukriti Singh
parent
85b4b6294b
commit
cb6462bd59
+2
-1
@@ -110,7 +110,7 @@ describe('ContentMetadataComponent', () => {
|
|||||||
const clickOnTagsSave = () => {
|
const clickOnTagsSave = () => {
|
||||||
findSaveTagsButton().click();
|
findSaveTagsButton().click();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}
|
};
|
||||||
|
|
||||||
const clickOnTagsSave = () => {
|
const clickOnTagsSave = () => {
|
||||||
findSaveTagsButton().click();
|
findSaveTagsButton().click();
|
||||||
@@ -823,6 +823,7 @@ describe('ContentMetadataComponent', () => {
|
|||||||
|
|
||||||
describe('Display properties with aspect oriented config', () => {
|
describe('Display properties with aspect oriented config', () => {
|
||||||
let appConfig: AppConfigService;
|
let appConfig: AppConfigService;
|
||||||
|
let classesApi: ClassesApi;
|
||||||
let expectedNode: Node;
|
let expectedNode: Node;
|
||||||
|
|
||||||
const verResponse: PropertyGroup = {
|
const verResponse: PropertyGroup = {
|
||||||
|
|||||||
+8
-4
@@ -221,6 +221,10 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
@Input()
|
@Input()
|
||||||
group: CardViewGroup;
|
group: CardViewGroup;
|
||||||
|
|
||||||
|
/** Emitted when content's editable state is changed. **/
|
||||||
|
@Output()
|
||||||
|
editableChange = new EventEmitter<boolean>();
|
||||||
|
|
||||||
private _assignedTags: string[] = [];
|
private _assignedTags: string[] = [];
|
||||||
private assignedTagsEntries: TagEntry[] = [];
|
private assignedTagsEntries: TagEntry[] = [];
|
||||||
private _editable = false;
|
private _editable = false;
|
||||||
@@ -514,10 +518,6 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
return !this.expanded || this.displayAspect === 'Properties';
|
return !this.expanded || this.displayAspect === 'Properties';
|
||||||
}
|
}
|
||||||
|
|
||||||
hasAllowableOperations() {
|
|
||||||
return this.contentService.hasAllowableOperations(this.node, AllowableOperationsEnum.UPDATE);
|
|
||||||
}
|
|
||||||
|
|
||||||
keyDown(event: KeyboardEvent) {
|
keyDown(event: KeyboardEvent) {
|
||||||
if (event.keyCode === 37 || event.keyCode === 39) {
|
if (event.keyCode === 37 || event.keyCode === 39) {
|
||||||
// ArrowLeft && ArrowRight
|
// ArrowLeft && ArrowRight
|
||||||
@@ -601,6 +601,10 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private isEmpty(value: any): boolean {
|
||||||
|
return value === undefined || value === null || value === '';
|
||||||
|
}
|
||||||
|
|
||||||
private loadCategoriesForNode(nodeId: string) {
|
private loadCategoriesForNode(nodeId: string) {
|
||||||
this.assignedCategories = [];
|
this.assignedCategories = [];
|
||||||
this.categoryService.getCategoryLinksForNode(nodeId).subscribe((categoryPaging) => {
|
this.categoryService.getCategoryLinksForNode(nodeId).subscribe((categoryPaging) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user