[Search] Templates vs representations

Made the search and search-menu templates into
representations, to be more consistent.
This commit is contained in:
slhale 2015-08-18 16:54:36 -07:00
parent 9ebc04ef14
commit d3ea67fbd9
3 changed files with 6 additions and 8 deletions

View File

@ -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">

View File

@ -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"

View File

@ -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 -->