mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
fix: v5 sidemenu & link to shortcuts now works, fixes #10087
This commit is contained in:
parent
68dab71275
commit
87ceeb0898
@ -59,7 +59,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li ng-repeat="child in ::item.children" ng-class="{divider: child.divider}" ng-hide="::child.hideFromMenu">
|
<li ng-repeat="child in ::item.children" ng-class="{divider: child.divider}" ng-hide="::child.hideFromMenu">
|
||||||
<a href="{{::child.url}}" target="{{::child.target}}">
|
<a href="{{::child.url}}" target="{{::child.target}}" ng-click="ctrl.itemClicked(child, $event)">
|
||||||
<i class="{{::child.icon}}" ng-show="::child.icon"></i>
|
<i class="{{::child.icon}}" ng-show="::child.icon"></i>
|
||||||
{{::child.text}}
|
{{::child.text}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -50,6 +50,13 @@ export class SideMenuCtrl {
|
|||||||
templateHtml: '<org-switcher dismiss="dismiss()"></org-switcher>',
|
templateHtml: '<org-switcher dismiss="dismiss()"></org-switcher>',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itemClicked(item, evt) {
|
||||||
|
if (item.url === '/shortcuts') {
|
||||||
|
appEvents.emit('show-modal', {templateHtml: '<help-modal></help-modal>'});
|
||||||
|
evt.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function sideMenuDirective() {
|
export function sideMenuDirective() {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
|
||||||
|
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
.shortcut-table-category-header {
|
.shortcut-table-category-header {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: $font-size-h6;
|
font-size: $font-size-h6;
|
||||||
font-style: italic;
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user