[ACS-5645]Implemented changes as per the review comments

This commit is contained in:
Yasa-Nataliya
2023-10-13 16:29:16 +05:30
committed by Anukriti Singh
parent 85b4b6294b
commit cb6462bd59
2 changed files with 10 additions and 5 deletions
@@ -110,7 +110,7 @@ describe('ContentMetadataComponent', () => {
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
}
};
const clickOnTagsSave = () => {
findSaveTagsButton().click();
@@ -823,6 +823,7 @@ describe('ContentMetadataComponent', () => {
describe('Display properties with aspect oriented config', () => {
let appConfig: AppConfigService;
let classesApi: ClassesApi;
let expectedNode: Node;
const verResponse: PropertyGroup = {
@@ -221,6 +221,10 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
@Input()
group: CardViewGroup;
/** Emitted when content's editable state is changed. **/
@Output()
editableChange = new EventEmitter<boolean>();
private _assignedTags: string[] = [];
private assignedTagsEntries: TagEntry[] = [];
private _editable = false;
@@ -514,10 +518,6 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
return !this.expanded || this.displayAspect === 'Properties';
}
hasAllowableOperations() {
return this.contentService.hasAllowableOperations(this.node, AllowableOperationsEnum.UPDATE);
}
keyDown(event: KeyboardEvent) {
if (event.keyCode === 37 || event.keyCode === 39) {
// 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) {
this.assignedCategories = [];
this.categoryService.getCategoryLinksForNode(nodeId).subscribe((categoryPaging) => {