diff options
Diffstat (limited to 'catalog-ui/src/app/ng2')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/composition/palette/services/palette.service.ts | 3 | ||||
-rw-r--r-- | catalog-ui/src/app/ng2/services/model.service.ts | 4 |
2 files changed, 7 insertions, 0 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 ed61dce192..d5528c5197 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 @@ -32,6 +32,9 @@ export class CompositionPaletteService { let model = this.workspaceService.metadata.model if (model) { params = params.append('componentModel', model); + if (this.workspaceService.getMetadataType() === 'SERVICE'){ + params = params.append('includeNormativeExtensionModels', 'true'); + } } const loadInstances = this.http.get(this.facadeUrl, {params}); const loadGroups = this.http.get(this.baseUrl + 'groupTypes', {params}); diff --git a/catalog-ui/src/app/ng2/services/model.service.ts b/catalog-ui/src/app/ng2/services/model.service.ts index 10ad4142de..83e16b12c7 100644 --- a/catalog-ui/src/app/ng2/services/model.service.ts +++ b/catalog-ui/src/app/ng2/services/model.service.ts @@ -35,4 +35,8 @@ export class ModelService { return this.http.get<Model[]>(this.baseUrl + "/v1/catalog/model"); } + getModelsOfType(type: string):Observable<Model[]> { + return this.http.get<Model[]>(this.baseUrl + "/v1/catalog/model?modelType=" + type); + } + } |