Skip to content

Commit

Permalink
correctiond for admin-portal
Browse files Browse the repository at this point in the history
  • Loading branch information
AlwinEgger committed Jun 19, 2020
1 parent f4b08c2 commit 42ef2ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/scripts/login/login.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/
angular.module('openolitor-core')
.controller('LoginController', ['$scope', '$rootScope', '$http',
'appConfig', 'ENV', 'gettext', '$rootElement',
'appConfig', 'gettext', '$rootElement',
'alertService', '$timeout', '$location', '$route', '$routeParams', 'ooAuthService', '$interval',
function($scope, $rootScope, $http, appConfig, ENV, gettext, $rootElement,
function($scope, $rootScope, $http, appConfig, gettext, $rootElement,
alertService, $timeout, $location, $route, $routeParams, ooAuthService, $interval) {
$scope.loginData = {};
$scope.submitted = false;
Expand All @@ -23,7 +23,7 @@ angular.module('openolitor-core')
token: undefined
};
$scope.status = 'login';
$scope.env = ENV;
$scope.env = appConfig.get().ENV;
$scope.secondFactorCountdown = 600;
$scope.secondFactorCountdownDate = function() {
return moment().add($scope.secondFactorCountdown, 'seconds');
Expand Down
6 changes: 3 additions & 3 deletions app/scripts/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ angular.module('openolitor-core')
.controller('OpenOlitorRootController', ['$scope', '$rootScope',
'ServerService', 'ProjektService', 'gettextCatalog', 'amMoment',
'$location', 'msgBus', 'checkSize', '$window', '$timeout', 'BUILD_NR',
'ENV', 'ooAuthService', '$cookies',
'ooAuthService', '$cookies',
function($scope, $rootScope, ServerService, ProjektService,
gettextCatalog, amMoment, $location, msgBus, checkSize, $window,
$timeout, BUILD_NR, ENV, ooAuthService, $cookies) {
$timeout, BUILD_NR, ooAuthService, $cookies) {
angular.element($window).bind('resize', function() {
checkSize();
});
Expand Down Expand Up @@ -52,7 +52,7 @@ angular.module('openolitor-core')
});

$scope.buildNr = BUILD_NR;
$scope.env = ENV;
$scope.env = appConfig.get().ENV;

msgBus.onMsg('WebSocketClosed', $rootScope, function(event, msg) {
$scope.connected = false;
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/openolitor-core.js

Large diffs are not rendered by default.

0 comments on commit 42ef2ef

Please sign in to comment.