mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: fixed links on new 404 page, fixes #9493
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
define([
|
||||
'angular',
|
||||
'app/core/config',
|
||||
'../core_module',
|
||||
],
|
||||
function (angular, coreModule) {
|
||||
function (angular, config, coreModule) {
|
||||
'use strict';
|
||||
|
||||
coreModule.default.controller('ErrorCtrl', function($scope, contextSrv, navModelSrv) {
|
||||
|
||||
$scope.navModel = navModelSrv.getNotFoundNav();
|
||||
$scope.appSubUrl = config.appSubUrl;
|
||||
|
||||
var showSideMenu = contextSrv.sidemenu;
|
||||
contextSrv.sidemenu = false;
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
$scope.contextSrv.sidemenu = showSideMenu;
|
||||
contextSrv.sidemenu = showSideMenu;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user