[Tree] Show root for most trees
Modify tree so that it includes its root in most cases, for WTD-922.
This commit is contained in:
@@ -151,6 +151,12 @@
|
||||
{
|
||||
"key": "tree",
|
||||
"templateUrl": "templates/tree.html",
|
||||
"type": "root",
|
||||
"priority": "preferred"
|
||||
},
|
||||
{
|
||||
"key": "tree",
|
||||
"templateUrl": "templates/subtree.html",
|
||||
"uses": [ "composition" ]
|
||||
},
|
||||
{
|
||||
|
||||
14
platform/commonUI/general/res/templates/subtree.html
Normal file
14
platform/commonUI/general/res/templates/subtree.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<ul class="tree">
|
||||
<li ng-if="!composition">
|
||||
<span class="tree-item">
|
||||
<span class="icon wait-spinner"></span>
|
||||
<span class="title-label">Loading...</span>
|
||||
</span>
|
||||
</li>
|
||||
<li ng-repeat="child in composition">
|
||||
<mct-representation key="'tree-node'"
|
||||
mct-object="child"
|
||||
ng-model="ngModel">
|
||||
</mct-representation>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -1,13 +1,7 @@
|
||||
<ul class="tree">
|
||||
<li ng-if="!composition">
|
||||
<span class="tree-item">
|
||||
<span class="icon wait-spinner"></span>
|
||||
<span class="title-label">Loading...</span>
|
||||
</span>
|
||||
</li>
|
||||
<li ng-repeat="child in composition">
|
||||
<li>
|
||||
<mct-representation key="'tree-node'"
|
||||
mct-object="child"
|
||||
mct-object="domainObject"
|
||||
ng-model="ngModel">
|
||||
</mct-representation>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user