summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/services
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2021-10-15 13:41:39 +0100
committerMichael Morris <michael.morris@est.tech>2021-10-19 13:53:09 +0000
commitcef866edcf8a14ede6762297dd9ab04b1f3d0375 (patch)
treed6ce40b7f5924f3c3cddf3bf10acdb789ff58ea3 /catalog-ui/src/app/ng2/services
parent5a59bf1544c7c9d1eee0cdddcbedc8c0d1d1bb8c (diff)
Support get_input for complex data types
Issue-ID: SDC-3760 Signed-off-by: aribeiro <anderson.ribeiro@est.tech> Change-Id: I68ceaa47012186533a90f06c2688454f5dde799b
Diffstat (limited to 'catalog-ui/src/app/ng2/services')
-rw-r--r--catalog-ui/src/app/ng2/services/data-type.service.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/catalog-ui/src/app/ng2/services/data-type.service.ts b/catalog-ui/src/app/ng2/services/data-type.service.ts
index 85c8b898aa..5b08e9323f 100644
--- a/catalog-ui/src/app/ng2/services/data-type.service.ts
+++ b/catalog-ui/src/app/ng2/services/data-type.service.ts
@@ -39,6 +39,15 @@ export class DataTypeService {
this.dataTypes = dataTypeService.getAllDataTypes(); //This should eventually be replaced by an NG2 call to the backend instead of utilizing Angular1 downgraded component.
}
+ public getDataTypeByModelAndTypeName(modelName: string, typeName: string): DataTypeModel {
+ this.dataTypes = this.dataTypeService.getAllDataTypesFromModel(modelName);
+ let dataTypeFound = this.dataTypes[typeName];
+ if (!dataTypeFound) {
+ console.log("MISSING Datatype for model " + modelName + " and type: " + typeName);
+ }
+ return dataTypeFound;
+ }
+
public getDataTypeByTypeName(typeName: string): DataTypeModel {
if(!this.dataTypes){
this.dataTypes = this.dataTypeService.getAllDataTypes();