From c3462d9ccaf7a89b38b8228938c99df451b1189b Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 14 Oct 2022 14:27:54 +0100 Subject: Fix cant set properties on an instance in the composion view Issue-ID: SDC-4218 Signed-off-by: JvD_Ericsson Change-Id: I58e1c60ea3f79abefe45700c3194f17875d74418 --- catalog-ui/src/app/utils/modals-handler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'catalog-ui/src') diff --git a/catalog-ui/src/app/utils/modals-handler.ts b/catalog-ui/src/app/utils/modals-handler.ts index 6813d53884..cbbab45e9c 100644 --- a/catalog-ui/src/app/utils/modals-handler.ts +++ b/catalog-ui/src/app/utils/modals-handler.ts @@ -24,7 +24,7 @@ import { ComponentMetadata } from '../models/component-metadata'; export interface IModalsHandler { openEditPropertyModal(property: PropertyModel, component: Component, filteredProperties: PropertyModel[], isPropertyOwnValue: boolean, - propertyOwnerType: string, propertyOwnerId: string, isViewOnly: boolean): ng.IPromise; + propertyOwnerType: string, propertyOwnerId: string, isViewOnly?: boolean): ng.IPromise; } export class ModalsHandler implements IModalsHandler { @@ -139,6 +139,9 @@ export class ModalsHandler implements IModalsHandler { }, propertyOwnerId: (): string => { return propertyOwnerId; + }, + isViewOnly: (): boolean => { + return false; } } }; -- cgit 1.2.3-korg