1 appDS2.controller('usageListControllerDS2', function ($scope,$interval,$http,$modal, AdminService){
2 AdminService.getUsageList().then(function(data){
5 $scope.data = JSON.parse(j.data);
6 $scope.users =$scope.data;
10 console.log("failed");
14 $scope.successPopUp = function () {
15 var modalInstance = $modal.open({
16 templateUrl: 'app/fusion/scripts/DS2-modal/success_modal.html',
17 controller: ModalInstanceCtrl,
18 sizeClass: 'modal-small',
27 $scope.removeSession = function(sessionId) {
29 $http.get("usage_list/removeSession?deleteSessionId="+sessionId).success(function(response){
30 $scope.users=response;
31 $scope.successPopUp();
33 /* modalService.popupConfirmWin("Confirm","You are about to expel this user from the application. All of their unsaved data will be lost. Do you want to continue?",
35 $http.get("usage_list/removeSession?deleteSessionId="+sessionId).success(function(response){$scope.users=response;});