From 2d1417d72be00b81443f044e5baef81884714cbf Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 5 Jan 2017 08:50:22 +0100 Subject: [PATCH] KEYCLOAK-3952 User Administration: Double step cancel --- .../theme/base/admin/resources/js/controllers/realm.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js b/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js index 12d37aaae8..471c4e51f2 100644 --- a/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js +++ b/themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js @@ -1717,7 +1717,7 @@ module.controller('RealmAdminEventsModalCtrl', function($scope, $filter, event) $scope.event = event; }); -module.controller('RealmBruteForceCtrl', function($scope, Realm, realm, $http, $location, Dialog, Notifications, TimeUnit) { +module.controller('RealmBruteForceCtrl', function($scope, Realm, realm, $http, $location, Dialog, Notifications, TimeUnit, $route) { console.log('RealmBruteForceCtrl'); $scope.realm = realm; @@ -1780,8 +1780,7 @@ module.controller('RealmBruteForceCtrl', function($scope, Realm, realm, $http, $ }; $scope.reset = function() { - $scope.realm = angular.copy(oldCopy); - $scope.changed = false; + $route.reload(); }; });