In the TOSCA function component, complex types inputs were not being
found for a selected complex type property.
Change-Id: I4c5c6876d8b64f6fdedf137e0523e4a105a5f921
Issue-ID: SDC-4057
Signed-off-by: andre.schmid <andre.schmid@est.tech>
import {TopologyTemplateService} from "../../../services/component-services/topology-template.service";
import {WorkspaceService} from "../../workspace/workspace.service";
import {PropertiesService} from "../../../services/properties.service";
import {TopologyTemplateService} from "../../../services/component-services/topology-template.service";
import {WorkspaceService} from "../../workspace/workspace.service";
import {PropertiesService} from "../../../services/properties.service";
-import {PROPERTY_DATA} from "../../../../utils/constants";
+import {PROPERTY_DATA, PROPERTY_TYPES} from "../../../../utils/constants";
import {DataTypeService} from "../../../services/data-type.service";
import {ToscaGetFunctionType} from "../../../../models/tosca-get-function-type";
import {TranslateService} from "../../../shared/translator/translate.service";
import {DataTypeService} from "../../../services/data-type.service";
import {ToscaGetFunctionType} from "../../../../models/tosca-get-function-type";
import {TranslateService} from "../../../shared/translator/translate.service";
}
private hasSameType(property: PropertyBEModel) {
}
private hasSameType(property: PropertyBEModel) {
- if (this.property.schema && this.property.schema.property) {
+ if (this.typeHasSchema(this.property.type)) {
if (!property.schema || !property.schema.property) {
return false;
}
return property.type === this.property.type && this.property.schema.property.type === property.schema.property.type;
}
if (!property.schema || !property.schema.property) {
return false;
}
return property.type === this.property.type && this.property.schema.property.type === property.schema.property.type;
}
return property.type === this.property.type;
}
return property.type === this.property.type;
}
return PROPERTY_DATA.SIMPLE_TYPES.indexOf(propertyType) === -1;
}
return PROPERTY_DATA.SIMPLE_TYPES.indexOf(propertyType) === -1;
}
+ private typeHasSchema(propertyType: string): boolean {
+ return PROPERTY_TYPES.MAP === propertyType || PROPERTY_TYPES.LIST === propertyType;
+ }
+
private stopLoading(): void {
this.isLoading = false;
}
private stopLoading(): void {
this.isLoading = false;
}