fix fixedHref on sidebar root menus when using blank: true

pull/231/head
blackanthrax 2017-01-12 23:30:14 +01:00
parent 1f81f3b1c1
commit f07e3b7563
2 changed files with 7 additions and 1 deletions

View File

@ -57,6 +57,12 @@
}]
}]
});
baSidebarServiceProvider.addStaticItem({
title: 'blank call sample',
fixedHref: 'reg.html',
blank: true
});
}
})();

View File

@ -5,7 +5,7 @@
ng-class="::{'with-sub-menu': item.subMenu}" ui-sref-active="selected"
ba-sidebar-toggling-item="item">
<a ng-mouseenter="hoverItem($event, item)" ui-state="item.stateRef || ''" ng-href="{{::(item.fixedHref ? item.fixedHref: '')}}" ng-if="::!item.subMenu" class="al-sidebar-list-link">
<a ng-mouseenter="hoverItem($event, item)" ui-state="item.stateRef || ''" ng-href="{{::(item.fixedHref ? item.fixedHref: '')}}" ng-if="::!item.subMenu" class="al-sidebar-list-link" target="{{::(item.blank ? '_blank' : '_self')}}">
<i class="{{ ::item.icon }}"></i><span>{{ ::item.title }}</span>
</a>