mirror of
https://github.com/nasa/openmct.git
synced 2025-01-21 03:55:31 +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,8 +69,8 @@
|
||||
{
|
||||
"key": "grid-item",
|
||||
"templateUrl": "templates/items/grid-item.html",
|
||||
"uses": [ "type", "action" ],
|
||||
"gestures": [ "info","menu" ]
|
||||
"uses": [ "type", "action", "location" ],
|
||||
"gestures": [ "info", "menu" ]
|
||||
},
|
||||
{
|
||||
"key": "object-header",
|
||||
|
@ -34,11 +34,10 @@
|
||||
<div class='item-main abs'>
|
||||
<div class='ui-symbol icon lg item-type'>
|
||||
{{type.getGlyph()}}
|
||||
<!-- this will be toggled by a ng-show -->
|
||||
<span
|
||||
class='ui-symbol icon l-icon-link' title="This object is a link"
|
||||
ng-show = "true"
|
||||
></span>
|
||||
class="ui-symbol icon l-icon-link" title="This object is a link"
|
||||
ng-show="location.isLink()"
|
||||
></span>
|
||||
</div>
|
||||
<div class='ui-symbol icon abs item-open'>}</div>
|
||||
</div>
|
||||
|
@ -22,11 +22,10 @@
|
||||
<span class="label s-label">
|
||||
<span class='ui-symbol icon type-icon'>
|
||||
{{type.getGlyph()}}
|
||||
<!-- this will be toggled by a ng-show -->
|
||||
<span
|
||||
class='ui-symbol icon l-icon-link'
|
||||
ng-show="true"
|
||||
></span>
|
||||
class='ui-symbol icon l-icon-link'
|
||||
ng-show="location.isLink()"
|
||||
></span>
|
||||
<span class='ui-symbol icon l-icon-alert'></span>
|
||||
</span>
|
||||
<span class='title-label'>
|
||||
|
Loading…
Reference in New Issue
Block a user