ability to disable an navigation item

This commit is contained in:
Niels Lyngsø
2020-06-12 13:54:47 +02:00
parent 5ad47aa641
commit 86c1abdbf7
2 changed files with 7 additions and 0 deletions
@@ -20,12 +20,18 @@
justify-content: center;
height: calc(~'@{editorHeaderHeight}'- ~'1px'); // need to offset the 1px border-bottom on .umb-editor-header - avoids overflowing top of the container
color: @ui-active-type;
user-select: none;
&:hover {
color: @ui-active-type-hover !important;
text-decoration: none;
}
&:disabled {
pointer-events: none;
color: @gray-6;
}
&::before {
content: "";
position: absolute;
@@ -4,6 +4,7 @@
hotkey="{{::vm.hotkey}}"
hotkey-when-hidden="true"
ng-class="{'is-active': vm.item.active, '-has-error': vm.item.hasError}"
ng-disabled="vm.item.disabled"
class="umb-sub-views-nav-item__action umb-outline umb-outline--thin">
<i class="icon {{ vm.item.icon }}" aria-hidden="true"></i>
<span class="umb-sub-views-nav-item-text">{{ vm.item.name }}</span>