mirror of https://github.com/portainer/portainer
fix(app): fix a Javascript error related to missing $state parameter (#1562)
parent
46da85c8cf
commit
a515b96a46
|
@ -7,7 +7,7 @@ angular.module('portainer')
|
|||
StateManager.initialize()
|
||||
.then(function success(state) {
|
||||
if (state.application.authentication) {
|
||||
initAuthentication(authManager, Authentication, $rootScope);
|
||||
initAuthentication(authManager, Authentication, $rootScope, $state);
|
||||
}
|
||||
if (state.application.analytics) {
|
||||
initAnalytics(Analytics, $rootScope);
|
||||
|
@ -30,7 +30,7 @@ angular.module('portainer')
|
|||
}]);
|
||||
|
||||
|
||||
function initAuthentication(authManager, Authentication, $rootScope) {
|
||||
function initAuthentication(authManager, Authentication, $rootScope, $state) {
|
||||
authManager.checkAuthOnRefresh();
|
||||
authManager.redirectWhenUnauthenticated();
|
||||
Authentication.init();
|
||||
|
|
Loading…
Reference in New Issue