[MNT-23821] Filter custom aspects (#8790)

* [MNT-23821] Filter custom aspects

* [MNT-23821] getCustomAspects initialization

* [MNT-23821] Added aspect list service tests

* [MNT-23821] getCustomAspects - whiteList argument as optional. Added tests.

* [MNT-23821] Changed from double to single quotes

* [MNT-23821] Lint
This commit is contained in:
tiagosalvado10
2023-08-22 15:27:31 +01:00
committed by GitHub
parent 9a349f27d9
commit b58e6f628a
3 changed files with 117 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ export class AspectListComponent implements OnInit, OnDestroy {
ngOnInit(): void {
if (this.nodeId) {
const node$ = this.nodeApiService.getNode(this.nodeId);
const customAspect$ = this.aspectListService.getCustomAspects()
const customAspect$ = this.aspectListService.getCustomAspects(this.aspectListService.getVisibleAspects())
.pipe(map(
(customAspects) => customAspects.flatMap((customAspect) => customAspect.entry.id)
));