fix(sidebar): fix route issue with empty state

Closes #38
pull/46/head
KostyaDanovsky 2016-05-23 13:06:01 +03:00
parent 5c5ab70a11
commit bcf9f09a49
1 changed files with 17 additions and 4 deletions

View File

@ -30,13 +30,26 @@
ng-class="{expanded: subitem.expanded, 'slide-right': subitem.slideRight}" ng-class="{expanded: subitem.expanded, 'slide-right': subitem.slideRight}"
ba-ui-sref-toggling-submenu> ba-ui-sref-toggling-submenu>
<li ng-mouseenter="hoverItem($event, item)" ng-repeat="subSubitem in ::subitem.subMenu" ui-sref-active="selected"> <li ng-mouseenter="hoverItem($event, item)" ng-repeat="subSubitem in ::subitem.subMenu" ui-sref-active="selected">
<a ng-mouseenter="hoverItem($event, item)" ui-state="subSubitem.stateRef || ''" ng-href="{{::(subSubitem.fixedHref ? subSubitem.fixedHref: '')}}">{{ <a ng-mouseenter="hoverItem($event, item)" href ng-if="::subSubitem.disabled" class="al-sidebar-list-link">
::subSubitem.title }}</a> {{ ::item.title }}
</a>
<a ng-mouseenter="hoverItem($event, item)"
ui-state="subSubitem.stateRef || ''"
ng-if="::!subSubitem.disabled"
ng-href="{{::(subSubitem.fixedHref ? subSubitem.fixedHref: '')}}">
{{::subSubitem.title }}
</a>
</li> </li>
</ul> </ul>
<a ng-mouseenter="hoverItem($event, item)" target="{{::(subitem.blank ? '_blank' : '_self')}}" ng-if="::!subitem.subMenu" <a ng-mouseenter="hoverItem($event, item)" href ng-if="::(!subitem.subMenu && subitem.disabled)" class="al-sidebar-list-link">
{{ ::subitem.title }}
</a>
<a ng-mouseenter="hoverItem($event, item)" target="{{::(subitem.blank ? '_blank' : '_self')}}"
ng-if="::(!subitem.subMenu && !subitem.disabled)"
ui-state="subitem.stateRef || ''" ui-state="subitem.stateRef || ''"
ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: '')}}">{{ ::subitem.title}}</a> ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: '')}}">
{{ ::subitem.title}}
</a>
</li> </li>
</ul> </ul>
</li> </li>