mirror of
https://github.com/nasa/openmct.git
synced 2025-06-05 17:01:41 +00:00
[Representations] grid-item and label display links
grid-item and label representations now use the "location" capability to determine whether or not to show a link indicator.
This commit is contained in:
parent
19b80ded16
commit
ec62c27f36
@ -69,7 +69,7 @@
|
|||||||
{
|
{
|
||||||
"key": "grid-item",
|
"key": "grid-item",
|
||||||
"templateUrl": "templates/items/grid-item.html",
|
"templateUrl": "templates/items/grid-item.html",
|
||||||
"uses": [ "type", "action" ],
|
"uses": [ "type", "action", "location" ],
|
||||||
"gestures": [ "info", "menu" ]
|
"gestures": [ "info", "menu" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -34,10 +34,9 @@
|
|||||||
<div class='item-main abs'>
|
<div class='item-main abs'>
|
||||||
<div class='ui-symbol icon lg item-type'>
|
<div class='ui-symbol icon lg item-type'>
|
||||||
{{type.getGlyph()}}
|
{{type.getGlyph()}}
|
||||||
<!-- this will be toggled by a ng-show -->
|
|
||||||
<span
|
<span
|
||||||
class='ui-symbol icon l-icon-link' title="This object is a link"
|
class="ui-symbol icon l-icon-link" title="This object is a link"
|
||||||
ng-show = "true"
|
ng-show="location.isLink()"
|
||||||
></span>
|
></span>
|
||||||
</div>
|
</div>
|
||||||
<div class='ui-symbol icon abs item-open'>}</div>
|
<div class='ui-symbol icon abs item-open'>}</div>
|
||||||
|
@ -22,10 +22,9 @@
|
|||||||
<span class="label s-label">
|
<span class="label s-label">
|
||||||
<span class='ui-symbol icon type-icon'>
|
<span class='ui-symbol icon type-icon'>
|
||||||
{{type.getGlyph()}}
|
{{type.getGlyph()}}
|
||||||
<!-- this will be toggled by a ng-show -->
|
|
||||||
<span
|
<span
|
||||||
class='ui-symbol icon l-icon-link'
|
class='ui-symbol icon l-icon-link'
|
||||||
ng-show="true"
|
ng-show="location.isLink()"
|
||||||
></span>
|
></span>
|
||||||
<span class='ui-symbol icon l-icon-alert'></span>
|
<span class='ui-symbol icon l-icon-alert'></span>
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user