summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/composition
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2021-07-05 09:49:28 +0100
committerMichael Morris <michael.morris@est.tech>2021-07-21 13:58:35 +0000
commit5cb26d5eb1ab5d04319624f1ffb49f7f26d55315 (patch)
tree0f239546c37e6e1e7fd09370640828102debc7de /catalog-ui/src/app/ng2/pages/composition
parent6d9f291848609ea128a633d7d0eddec30d3efe82 (diff)
Display model name
Issue-ID: SDC-3632 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I7c6ec805298dee7b8327769b48c157f2bf0c30f9
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/composition')
-rw-r--r--catalog-ui/src/app/ng2/pages/composition/palette/services/palette.service.ts8
1 files changed, 2 insertions, 6 deletions
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);