From eb4ded39b3974e3327ae4135d6877a73ab4ca9ed Mon Sep 17 00:00:00 2001 From: Pegah Sarram Date: Thu, 5 Oct 2017 14:41:19 -0700 Subject: [PATCH] [Edit] Allow inline-editing the name only if the object is editable Made the contenteditable attribute conditional based on whether the object can be edited or not. If the object is not editable, the attribute is removed. Add Tests. Fixes #1746 --- .../res/templates/browse/object-header.html | 2 +- .../browse/src/ObjectHeaderController.js | 19 +++++++++------- .../browse/test/ObjectHeaderControllerSpec.js | 22 ++++++++++++++----- 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/platform/commonUI/browse/res/templates/browse/object-header.html b/platform/commonUI/browse/res/templates/browse/object-header.html index 4638137ee8..59175499f4 100644 --- a/platform/commonUI/browse/res/templates/browse/object-header.html +++ b/platform/commonUI/browse/res/templates/browse/object-header.html @@ -22,7 +22,7 @@ {{parameters.mode}} -