From: JvD_Ericsson Date: Fri, 14 Oct 2022 13:27:54 +0000 (+0100) Subject: Fix cant set properties on an instance in the composion view X-Git-Tag: 1.12.0~17 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F131481%2F2;p=sdc.git Fix cant set properties on an instance in the composion view Issue-ID: SDC-4218 Signed-off-by: JvD_Ericsson Change-Id: I58e1c60ea3f79abefe45700c3194f17875d74418 --- 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; } } };