From 7457ecefb624682f6dddc558111b1d38f2a2ca83 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Thu, 19 Jan 2023 14:43:33 +0000 Subject: Fix ability to add property to data type of different model Issue-ID: SDC-4339 Signed-off-by: JvD_Ericsson Change-Id: Ibc5b57a042ffc4e7f914d46ad264a0e16081b863 --- .../type-workspace-properties/type-workspace-properties.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src/app/ng2/pages/type-workspace') diff --git a/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts b/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts index 90bc89ae08..f53ad5b376 100644 --- a/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts +++ b/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts @@ -173,7 +173,8 @@ export class TypeWorkspacePropertiesComponent implements OnInit { this.modalService.addDynamicContentToModalAndBindInputs(modal, AddPropertyComponent, { 'readOnly': readOnly, - 'property': property + 'property': property, + 'model': this.dataType.model }); modal.instance.dynamicContent.instance.onValidityChange.subscribe((validationEvent: PropertyValidationEvent) => { disableSaveButtonFlag = !validationEvent.isValid; -- cgit 1.2.3-korg