aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-01-27 16:53:03 +0000
committerJeff van Dam <jeff.van.dam@est.tech>2023-01-30 09:48:29 +0000
commit43cd9646d68ab0dda00b87206ff5f9a7c27487e7 (patch)
treefa2408516fa95f5dda2e8458453bdaf02918d53c /catalog-ui/src/app/view-models
parenteb735bf2d84779418729862801f187879868f878 (diff)
Fix unable to edit VFC property after checkout
Issue-ID: SDC-4354 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I5e12a80925fa9b1163cb64845c75300e9ec5a236
Diffstat (limited to 'catalog-ui/src/app/view-models')
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/properties/properties-view-model.ts4
1 files changed, 3 insertions, 1 deletions
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 => {