diff --git a/privacyidea/static/components/login/controllers/loginControllers.js b/privacyidea/static/components/login/controllers/loginControllers.js index bb249361d1..781ceae4d8 100644 --- a/privacyidea/static/components/login/controllers/loginControllers.js +++ b/privacyidea/static/components/login/controllers/loginControllers.js @@ -113,10 +113,6 @@ angular.module("privacyideaApp") params: oldParams }; }); - $transitions.onSuccess({}, - function() { - $scope.checkReloadListeners(); - }); $scope.$on('IdleStart', function () { //debug: console.log("start idle"); @@ -511,24 +507,6 @@ angular.module("privacyideaApp") $scope.$broadcast("piReload"); }; - $scope.checkReloadListeners = function () { - /* - TODO: The a logic, that can hide the reload button. - This is not straighforward, since the current number of connected - listeners might be confusing: - - connected numbers: - var currentListeners = $scope.$$listenerCount["piReload"]; - - When the state changes, the scope and thus the current listener is - destroyed. But the statechange-success is called, before the scope - is destroyed, so there can be two connected listeners, when - changing from a state to another state and both have a listener - defined. - */ - $scope.reloadListeners = 1; - }; - }); angular.module("privacyideaApp") diff --git a/privacyidea/static/templates/menu.html b/privacyidea/static/templates/menu.html index 477b427644..c6be238847 100644 --- a/privacyidea/static/templates/menu.html +++ b/privacyidea/static/templates/menu.html @@ -96,8 +96,7 @@
  • -
  • +
  • Refresh