aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/directives
diff options
context:
space:
mode:
authorimamSidero <imam.hussain@est.tech>2023-05-02 18:51:34 +0100
committerMichael Morris <michael.morris@est.tech>2023-05-10 14:10:21 +0000
commita147fbc8f026263ea6ee799c02371c68fd749aa9 (patch)
tree2f27e83ad3988ae2b9df20358d7d3c89aeb4c5d7 /catalog-ui/src/app/directives
parenta1ba3abf29613ee9e576a7c96a76ceb921086044 (diff)
Fix complex list/map entries in composition view
Complex list/map entries in composition view is visible and can add, edit and delete the entries Issue-ID: SDC-4482 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I1d1a33495f3ec45821ee40522c3884e43b380c62
Diffstat (limited to 'catalog-ui/src/app/directives')
-rw-r--r--catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts2
-rw-r--r--catalog-ui/src/app/directives/property-types/type-map/type-map-directive.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts
index 0d54fc4343..b2d322be1c 100644
--- a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts
+++ b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts
@@ -140,7 +140,7 @@ export class TypeListDirective implements ng.IDirective {
});
//reset valueObjRef when schema type is changed
scope.$watchCollection('schemaProperty.type', (newData:any):void => {
- scope.isSchemaTypeDataType = this.isDataTypeForSchemaType(scope.schemaProperty, scope.types);
+ scope.isSchemaTypeDataType = this.DataTypesService.isDataTypeForSchemaType(scope.schemaProperty);
});
//when user brows between properties in "edit property form"
diff --git a/catalog-ui/src/app/directives/property-types/type-map/type-map-directive.ts b/catalog-ui/src/app/directives/property-types/type-map/type-map-directive.ts
index f8fa6dd359..098b28936b 100644
--- a/catalog-ui/src/app/directives/property-types/type-map/type-map-directive.ts
+++ b/catalog-ui/src/app/directives/property-types/type-map/type-map-directive.ts
@@ -134,7 +134,7 @@ export class TypeMapDirective implements ng.IDirective {
// reset valueObjRef and mapKeys when schema type is changed
scope.$watchCollection('schemaProperty.type', (newData: any): void => {
- scope.isSchemaTypeDataType = this.isDataTypeForSchemaType(scope.schemaProperty, scope.types);
+ scope.isSchemaTypeDataType = this.DataTypesService.isDataTypeForSchemaType(scope.schemaProperty);
if (scope.valueObjRef) {
scope.mapKeys = Object.keys(scope.valueObjRef);
// keeping another copy of the keys, as the mapKeys gets overridden sometimes