fix console session logoutAll

This commit is contained in:
Bill Burke 2014-08-05 17:16:46 -04:00
parent 38bd79ab88
commit 3882cc4aa8

View file

@ -694,7 +694,7 @@ module.controller('RealmKeysDetailCtrl', function($scope, Realm, realm, $http, $
}; };
}); });
module.controller('RealmSessionStatsCtrl', function($scope, realm, stats, RealmSessionStats, RealmLogoutAll, Notifications) { module.controller('RealmSessionStatsCtrl', function($scope, realm, stats, RealmApplicationSessionStats, RealmLogoutAll, Notifications) {
$scope.realm = realm; $scope.realm = realm;
$scope.stats = stats; $scope.stats = stats;
@ -703,7 +703,7 @@ module.controller('RealmSessionStatsCtrl', function($scope, realm, stats, RealmS
$scope.logoutAll = function() { $scope.logoutAll = function() {
RealmLogoutAll.save({realm : realm.realm}, function () { RealmLogoutAll.save({realm : realm.realm}, function () {
Notifications.success('Logged out all users'); Notifications.success('Logged out all users');
RealmSessionStats.get({realm: realm.realm}, function(updated) { RealmApplicationSessionStats.get({realm: realm.realm}, function(updated) {
Notifications.success('Logged out all users'); Notifications.success('Logged out all users');
$scope.stats = updated; $scope.stats = updated;
}) })