From 43cd9646d68ab0dda00b87206ff5f9a7c27487e7 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Fri, 27 Jan 2023 16:53:03 +0000 Subject: Fix unable to edit VFC property after checkout Issue-ID: SDC-4354 Signed-off-by: JvD_Ericsson Change-Id: I5e12a80925fa9b1163cb64845c75300e9ec5a236 --- .../view-models/workspace/tabs/properties/properties-view-model.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catalog-ui/src/app/view-models/workspace/tabs/properties/properties-view-model.ts b/catalog-ui/src/app/view-models/workspace/tabs/properties/properties-view-model.ts index 656c52f908..6d108d7db4 100644 --- a/catalog-ui/src/app/view-models/workspace/tabs/properties/properties-view-model.ts +++ b/catalog-ui/src/app/view-models/workspace/tabs/properties/properties-view-model.ts @@ -94,7 +94,9 @@ export class PropertiesViewModel { this.$scope.addOrUpdateProperty = (property?:PropertyModel):void => { - this.openEditPropertyModal(property ? property : new PropertyModel()); + let prop = property ? property : new PropertyModel() + prop.readonly = this.$scope.isViewMode(); + this.openEditPropertyModal(prop); }; this.$scope.delete = (property:PropertyModel):void => { -- cgit 1.2.3-korg