diff --git a/platform/commonUI/edit/src/actions/PropertiesDialog.js b/platform/commonUI/edit/src/actions/PropertiesDialog.js index 97ee1f5c0a..f461c0b8e1 100644 --- a/platform/commonUI/edit/src/actions/PropertiesDialog.js +++ b/platform/commonUI/edit/src/actions/PropertiesDialog.js @@ -54,6 +54,9 @@ define( var row = Object.create(property.getDefinition()); row.key = index; return row; + }).filter(function (row) { + // Only show properties which are editable + return row.control; }) }] }; diff --git a/platform/commonUI/edit/test/actions/PropertiesDialogSpec.js b/platform/commonUI/edit/test/actions/PropertiesDialogSpec.js index 7269ae64a3..a9077e8ec6 100644 --- a/platform/commonUI/edit/test/actions/PropertiesDialogSpec.js +++ b/platform/commonUI/edit/test/actions/PropertiesDialogSpec.js @@ -39,7 +39,7 @@ define( return { getValue: function (model) { return model[k]; }, setValue: function (model, v) { model[k] = v; }, - getDefinition: function () { return {}; } + getDefinition: function () { return { control: 'textfield '}; } }; });