aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app')
-rw-r--r--catalog-ui/src/app/ng2/services/catalog.service.ts2
-rw-r--r--catalog-ui/src/app/services/data-types-service.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/catalog-ui/src/app/ng2/services/catalog.service.ts b/catalog-ui/src/app/ng2/services/catalog.service.ts
index fcb9dd4006..02ba33088f 100644
--- a/catalog-ui/src/app/ng2/services/catalog.service.ts
+++ b/catalog-ui/src/app/ng2/services/catalog.service.ts
@@ -51,7 +51,7 @@ export class CatalogService {
let searchParams = new HttpParams();
searchParams = searchParams.append('excludeTypes', ResourceType.VFCMT).append('excludeTypes', ResourceType.CONFIGURATION);
const observableComponents = this.http.get<IComponentsArray>(this.baseMicroServiceUrl + this.api.GET_uicache_catalog, {params: searchParams});
- const observableDataTypes = this.dataTypesService.getDataTypesFromAllModel();
+ const observableDataTypes = this.dataTypesService.getDataTypesFromAllModelExcludePrimitives();
return zip(observableComponents, observableDataTypes)
.pipe(map(res => this.processComponentsResponse(res, true)));
}
diff --git a/catalog-ui/src/app/services/data-types-service.ts b/catalog-ui/src/app/services/data-types-service.ts
index b27f4222c4..f3d02a20c0 100644
--- a/catalog-ui/src/app/services/data-types-service.ts
+++ b/catalog-ui/src/app/services/data-types-service.ts
@@ -98,9 +98,9 @@ export class DataTypesService implements IDataTypesService {
return this.dataTypes;
}
- public getDataTypesFromAllModel = (): Observable<Array<DataTypeModel>> => {
+ public getDataTypesFromAllModelExcludePrimitives = (): Observable<Array<DataTypeModel>> => {
return new Observable<Array<DataTypeModel>>(subscriber => {
- this.$http.get<List<DataTypesMap>>(this.baseUrl + "allDataTypes")
+ this.$http.get<List<DataTypesMap>>(this.baseUrl + "allDataTypes?excludePrimitives=true")
.then(promiseValue => {
const allDataTypes = this.getDataTypesItems(promiseValue.data);
subscriber.next(allDataTypes);