diff options
-rw-r--r-- | catalog-ui/src/app/view-models/workspace/tabs/properties/properties-view-model.ts | 4 |
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 => { |