diff options
author | andre.schmid <andre.schmid@est.tech> | 2022-10-04 20:29:28 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-10-17 14:42:22 +0000 |
commit | aa72781388f3e6408bb43f1b024d88ec1c9d2c10 (patch) | |
tree | 15002a934486557f1d62eec49e57af1e2e59b443 /catalog-ui/src/app/models | |
parent | b75fe3c7ce231c86cd4c6d052da453d02809c8f9 (diff) |
Add data type properties workspace
Implements the properties workspace for a data type, with the list
and filter feature.
Change-Id: I2ec337a0481bddd5fe32e45644abdc88e197fa49
Issue-ID: SDC-4214
Signed-off-by: André Schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r-- | catalog-ui/src/app/models/properties-inputs/property-be-model.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/properties-inputs/property-be-model.ts b/catalog-ui/src/app/models/properties-inputs/property-be-model.ts index 097bbb2c54..b8cccdd213 100644 --- a/catalog-ui/src/app/models/properties-inputs/property-be-model.ts +++ b/catalog-ui/src/app/models/properties-inputs/property-be-model.ts @@ -197,5 +197,17 @@ export class PropertyBEModel { public isToscaFunction(): boolean { return this.toscaFunction != null; } + + /** + * Gets the schema type, if there is a schema. Otherwise, returns undefined. + * + * @return the schema type. + */ + public getSchemaType(): string { + if (this.schema && this.schema.property) { + return this.schema.property.type; + } + return undefined; + } } |