[Templates] Add stubs for link indicator

Update templates to use the location capability to show an indicator.
This commit is contained in:
Pete Richards 2015-08-06 14:52:42 -07:00
parent 9ea1d24121
commit 449db4f3a9
3 changed files with 23 additions and 18 deletions

View File

@ -196,7 +196,7 @@
{
"key": "label",
"templateUrl": "templates/label.html",
"uses": [ "type" ],
"uses": [ "type", "location" ],
"gestures": [ "drag", "menu", "info" ]
},
{

View File

@ -24,5 +24,10 @@
{{type.getGlyph()}}
<span class='ui-symbol icon alert hidden'>!</span>
</span>
<span class='title-label'>{{model.name}}</span>
<span class='title-label'>
{{model.name}}
<span>{{model.location}}</span>
<span>{{location.getLocation()}}</span>
<span ng-show="{{location.isLink}}">(link)</span>
</span>
</span>

View File

@ -22,29 +22,29 @@
<span ng-controller="ToggleController as toggle">
<span ng-controller="TreeNodeController as treeNode">
<span
class="tree-item menus-to-left"
ng-class="{selected: treeNode.isSelected()}"
>
class="tree-item menus-to-left"
ng-class="{selected: treeNode.isSelected()}"
>
<span
class='ui-symbol view-control'
ng-click="toggle.toggle(); treeNode.trackExpansion()"
ng-if="model.composition !== undefined"
>
class='ui-symbol view-control'
ng-click="toggle.toggle(); treeNode.trackExpansion()"
ng-if="model.composition !== undefined"
>
{{toggle.isActive() ? "v" : ">"}}
</span>
<mct-representation
key="'label'"
mct-object="domainObject"
ng-model="ngModel"
ng-click="ngModel.selectedObject = domainObject"
>
key="'label'"
mct-object="domainObject"
ng-model="ngModel"
ng-click="ngModel.selectedObject = domainObject"
>
</mct-representation>
</span>
<span
class="tree-item-subtree"
ng-show="toggle.isActive()"
ng-if="model.composition !== undefined"
>
class="tree-item-subtree"
ng-show="toggle.isActive()"
ng-if="model.composition !== undefined"
>
<mct-representation key="'subtree'"
ng-model="ngModel"