From d863c2843cf31eb287d951231962735b2985be47 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 18 Mar 2015 10:30:36 -0700 Subject: [PATCH] [Tree] Show root for most trees Modify tree so that it includes its root in most cases, for WTD-922. --- platform/commonUI/general/bundle.json | 6 +++ .../general/res/templates/subtree.html | 14 +++++++ .../commonUI/general/res/templates/tree.html | 10 +---- platform/core/src/models/RootModelProvider.js | 1 + .../representation/src/MCTRepresentation.js | 40 ++++++++++++++----- 5 files changed, 52 insertions(+), 19 deletions(-) create mode 100644 platform/commonUI/general/res/templates/subtree.html diff --git a/platform/commonUI/general/bundle.json b/platform/commonUI/general/bundle.json index 3dfc0c0447..359f8d22a5 100644 --- a/platform/commonUI/general/bundle.json +++ b/platform/commonUI/general/bundle.json @@ -151,6 +151,12 @@ { "key": "tree", "templateUrl": "templates/tree.html", + "type": "root", + "priority": "preferred" + }, + { + "key": "tree", + "templateUrl": "templates/subtree.html", "uses": [ "composition" ] }, { diff --git a/platform/commonUI/general/res/templates/subtree.html b/platform/commonUI/general/res/templates/subtree.html new file mode 100644 index 0000000000..92eb25ef7a --- /dev/null +++ b/platform/commonUI/general/res/templates/subtree.html @@ -0,0 +1,14 @@ + diff --git a/platform/commonUI/general/res/templates/tree.html b/platform/commonUI/general/res/templates/tree.html index 92eb25ef7a..445d554222 100644 --- a/platform/commonUI/general/res/templates/tree.html +++ b/platform/commonUI/general/res/templates/tree.html @@ -1,13 +1,7 @@