Migrate: Error page (404) (#26010)

* first things

* simple migration and remove angular part
This commit is contained in:
Peter Holmberg
2020-07-03 08:53:54 +02:00
committed by GitHub
parent 45bbee2dea
commit 02a46a5d61
7 changed files with 112 additions and 80 deletions

View File

@@ -1,5 +1,4 @@
import './invited_ctrl';
import './signup_ctrl';
import './reset_password_ctrl';
import './error_ctrl';
import './json_editor_ctrl';

View File

@@ -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);