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()
|
StateManager.initialize()
|
||||||
.then(function success(state) {
|
.then(function success(state) {
|
||||||
if (state.application.authentication) {
|
if (state.application.authentication) {
|
||||||
initAuthentication(authManager, Authentication, $rootScope);
|
initAuthentication(authManager, Authentication, $rootScope, $state);
|
||||||
}
|
}
|
||||||
if (state.application.analytics) {
|
if (state.application.analytics) {
|
||||||
initAnalytics(Analytics, $rootScope);
|
initAnalytics(Analytics, $rootScope);
|
||||||
|
@ -30,7 +30,7 @@ angular.module('portainer')
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
||||||
function initAuthentication(authManager, Authentication, $rootScope) {
|
function initAuthentication(authManager, Authentication, $rootScope, $state) {
|
||||||
authManager.checkAuthOnRefresh();
|
authManager.checkAuthOnRefresh();
|
||||||
authManager.redirectWhenUnauthenticated();
|
authManager.redirectWhenUnauthenticated();
|
||||||
Authentication.init();
|
Authentication.init();
|
||||||
|
|
Loading…
Reference in New Issue