From 5cb26d5eb1ab5d04319624f1ffb49f7f26d55315 Mon Sep 17 00:00:00 2001 From: aribeiro Date: Mon, 5 Jul 2021 09:49:28 +0100 Subject: Display model name Issue-ID: SDC-3632 Signed-off-by: aribeiro Change-Id: I7c6ec805298dee7b8327769b48c157f2bf0c30f9 --- .../app/ng2/pages/composition/palette/services/palette.service.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'catalog-ui/src/app/ng2/pages/composition') diff --git a/catalog-ui/src/app/ng2/pages/composition/palette/services/palette.service.ts b/catalog-ui/src/app/ng2/pages/composition/palette/services/palette.service.ts index 5e0fb1e170..ed61dce192 100644 --- a/catalog-ui/src/app/ng2/pages/composition/palette/services/palette.service.ts +++ b/catalog-ui/src/app/ng2/pages/composition/palette/services/palette.service.ts @@ -27,20 +27,16 @@ export class CompositionPaletteService { } public subscribeToLeftPaletteElements(next, error) { - let params = new HttpParams(); params = params.append('internalComponentType', this.workspaceService.getMetadataType()); - let model = this.workspaceService.metadata.model + let model = this.workspaceService.metadata.model if (model) { params = params.append('componentModel', model); } const loadInstances = this.http.get(this.facadeUrl, {params}); const loadGroups = this.http.get(this.baseUrl + 'groupTypes', {params}); const loadPolicies = this.http.get(this.baseUrl + 'policyTypes', {params}); - - Observable.forkJoin( - loadInstances, loadGroups, loadPolicies - ).subscribe( ([resInstances, resGrouops, resPolicies]) => { + Observable.forkJoin(loadInstances, loadGroups, loadPolicies).subscribe( ([resInstances, resGrouops, resPolicies]) => { const combinedDictionary = this.combineResoponses(resInstances, resGrouops, resPolicies); this.leftPaletteComponents = combinedDictionary; next(this.leftPaletteComponents); -- cgit 1.2.3-korg