mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +00:00
[Search] Templates vs representations
Made the search and search-menu templates into representations, to be more consistent.
This commit is contained in:
parent
9ebc04ef14
commit
d3ea67fbd9
@ -29,10 +29,10 @@
|
||||
<mct-representation key="'create-button'" mct-object="navigatedObject">
|
||||
</mct-representation>
|
||||
<div class='holder search-holder abs'>
|
||||
<mct-include key="'search'"
|
||||
<mct-representation key="'search'"
|
||||
mct-object="domainObject"
|
||||
ng-model="treeModel">
|
||||
</mct-include>
|
||||
</mct-representation>
|
||||
</div>
|
||||
<div class='holder tree-holder abs'
|
||||
ng-hide="treeModel.search">
|
||||
|
@ -26,7 +26,7 @@
|
||||
"depends": [ "$scope", "$document" ]
|
||||
}
|
||||
],
|
||||
"templates": [
|
||||
"representations": [
|
||||
{
|
||||
"key": "search",
|
||||
"templateUrl": "templates/search.html"
|
||||
@ -34,9 +34,7 @@
|
||||
{
|
||||
"key": "search-menu",
|
||||
"templateUrl": "templates/search-menu.html"
|
||||
}
|
||||
],
|
||||
"representations": [
|
||||
},
|
||||
{
|
||||
"key": "search-item",
|
||||
"templateUrl": "templates/search-item.html"
|
||||
|
@ -58,12 +58,12 @@
|
||||
</a>
|
||||
|
||||
<!-- Menu -->
|
||||
<mct-include key="'search-menu'"
|
||||
<mct-representation key="'search-menu'"
|
||||
class="menu-element search-menu-holder"
|
||||
ng-class="{off: !toggle.isActive()}"
|
||||
ng-model="ngModel"
|
||||
ng-click="toggle.setState(true)">
|
||||
</mct-include>
|
||||
</mct-representation>
|
||||
</div>
|
||||
|
||||
<!-- Active filter display -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user