Skip to content

Commit

Permalink
fix(sidebar): fix route issue with empty state
Browse files Browse the repository at this point in the history
Closes akveo#38
  • Loading branch information
KostyaDanovsky committed May 23, 2016
1 parent 5c5ab70 commit bcf9f09
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/app/theme/components/baSidebar/ba-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,26 @@
ng-class="{expanded: subitem.expanded, 'slide-right': subitem.slideRight}"
ba-ui-sref-toggling-submenu>
<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: '')}}">{{
::subSubitem.title }}</a>
<a ng-mouseenter="hoverItem($event, item)" href ng-if="::subSubitem.disabled" class="al-sidebar-list-link">
{{ ::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>
</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 || ''"
ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: '')}}">{{ ::subitem.title}}</a>
ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: '')}}">
{{ ::subitem.title}}
</a>
</li>
</ul>
</li>
Expand Down

0 comments on commit bcf9f09

Please sign in to comment.