mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ADF-5363] - when aspects has no name we will show the id instead (#6906)
* [ADF-5363] - when aspects has no name we will show the id instead * added PR review fix
This commit is contained in:
@@ -101,4 +101,12 @@ export class AspectListComponent implements OnInit, OnDestroy {
|
||||
this.nodeAspects = [];
|
||||
this.valueChanged.emit(this.nodeAspects);
|
||||
}
|
||||
|
||||
getId(aspect: any): string {
|
||||
return aspect?.entry?.title ? aspect?.entry?.title : aspect?.entry?.id.replace(':', '-');
|
||||
}
|
||||
|
||||
getTitle(aspect: any): string {
|
||||
return aspect?.entry?.title ? aspect?.entry?.title : aspect?.entry?.id;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user