summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/services/data-types-service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/services/data-types-service.ts')
-rw-r--r--catalog-ui/src/app/services/data-types-service.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/catalog-ui/src/app/services/data-types-service.ts b/catalog-ui/src/app/services/data-types-service.ts
index f3d02a20c0..09ece87907 100644
--- a/catalog-ui/src/app/services/data-types-service.ts
+++ b/catalog-ui/src/app/services/data-types-service.ts
@@ -24,7 +24,7 @@ import {
ComponentInstance,
DataTypeModel,
DataTypesMap,
- IAppConfigurtaion, InputModel,
+ IAppConfigurtaion, IFileDownload, InputModel,
InputPropertyBase,
PropertyModel,
SchemaProperty
@@ -206,4 +206,9 @@ export class DataTypesService implements IDataTypesService {
}
return true;
};
+
+ public downloadDataType = (dataTypeId: string): angular.IHttpPromise<IFileDownload> => {
+ console.log("dataTypeId", dataTypeId);
+ return this.$http.get<IFileDownload>(this.baseUrl + "downloadDataType" + ((dataTypeId) ? '?dataTypeId=' + dataTypeId : ''))
+ }
}