mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Migrate: Error page (404) (#26010)
* first things * simple migration and remove angular part
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import './invited_ctrl';
|
||||
import './signup_ctrl';
|
||||
import './reset_password_ctrl';
|
||||
import './error_ctrl';
|
||||
import './json_editor_ctrl';
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
import config from 'app/core/config';
|
||||
import coreModule from '../core_module';
|
||||
import appEvents from 'app/core/app_events';
|
||||
import { CoreEvents } from 'app/types';
|
||||
|
||||
export class ErrorCtrl {
|
||||
/** @ngInject */
|
||||
constructor($scope: any, contextSrv: any, navModelSrv: any) {
|
||||
$scope.navModel = navModelSrv.getNotFoundNav();
|
||||
$scope.appSubUrl = config.appSubUrl;
|
||||
|
||||
if (!contextSrv.isSignedIn) {
|
||||
appEvents.emit(CoreEvents.toggleSidemenuHidden);
|
||||
}
|
||||
|
||||
$scope.$on('destroy', () => {
|
||||
if (!contextSrv.isSignedIn) {
|
||||
appEvents.emit(CoreEvents.toggleSidemenuHidden);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
coreModule.controller('ErrorCtrl', ErrorCtrl);
|
||||
Reference in New Issue
Block a user