diff --git a/platform/commonUI/edit/src/policies/EditActionPolicy.js b/platform/commonUI/edit/src/policies/EditActionPolicy.js index a591945ae9..81efe27a26 100644 --- a/platform/commonUI/edit/src/policies/EditActionPolicy.js +++ b/platform/commonUI/edit/src/policies/EditActionPolicy.js @@ -65,13 +65,13 @@ define( // A view is editable unless explicitly flagged as not (views || []).forEach(function (view) { - if (view.editable===true && !(applicableView(view.key) && !editableType(type.getKey()))){ + if (view.editable === true || (applicableView(view.key) && editableType(type.getKey()))){ count++; } }); return count; - }; + } /** * Checks whether the domain object is currently being edited. If diff --git a/platform/features/layout/bundle.json b/platform/features/layout/bundle.json index 75aca9a4a9..f0cd069bf8 100644 --- a/platform/features/layout/bundle.json +++ b/platform/features/layout/bundle.json @@ -9,6 +9,7 @@ "glyph": "L", "type": "layout", "templateUrl": "templates/layout.html", + "editable": true, "uses": [] }, { diff --git a/platform/features/timeline/bundle.json b/platform/features/timeline/bundle.json index e7363ab160..9f3f89ed99 100644 --- a/platform/features/timeline/bundle.json +++ b/platform/features/timeline/bundle.json @@ -139,6 +139,7 @@ "type": "timeline", "description": "A timeline view of Timelines and Activities.", "templateUrl": "templates/timeline.html", + "editable": true, "toolbar": { "sections": [ {