Fix cant set properties on an instance in the composion view 81/131481/2
authorJvD_Ericsson <jeff.van.dam@est.tech>
Fri, 14 Oct 2022 13:27:54 +0000 (14:27 +0100)
committerMichael Morris <michael.morris@est.tech>
Mon, 17 Oct 2022 14:44:47 +0000 (14:44 +0000)
Issue-ID: SDC-4218
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I58e1c60ea3f79abefe45700c3194f17875d74418

catalog-ui/src/app/utils/modals-handler.ts

index 6813d53..cbbab45 100644 (file)
@@ -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<any>;
+                          propertyOwnerType: string, propertyOwnerId: string, isViewOnly?: boolean): ng.IPromise<any>;
 }
 
 export class ModalsHandler implements IModalsHandler {
@@ -139,6 +139,9 @@ export class ModalsHandler implements IModalsHandler {
                 },
                 propertyOwnerId: (): string => {
                     return propertyOwnerId;
+                },
+                isViewOnly: (): boolean => {
+                    return false;
                 }
             }
         };