From: Galen Charlton Date: Thu, 19 May 2022 21:25:52 +0000 (-0400) Subject: LP#1946531: (follow-up) show progress bar when adding users to bucket X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=80347b51c59cb9bda3bbaa85ee7919a4df626f64;p=working%2FEvergreen.git LP#1946531: (follow-up) show progress bar when adding users to bucket Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js index d0e7c98f50..a01df57bce 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js @@ -55,9 +55,9 @@ angular.module('egCatUserBuckets', */ .controller('UserBucketCtrl', ['$scope','$location','$q','$timeout','$uibModal', - '$window','egCore','bucketSvc','ngToast', + '$window','egCore','bucketSvc','ngToast','egProgressDialog', function($scope, $location, $q, $timeout, $uibModal, - $window, egCore, bucketSvc , ngToast) { + $window, egCore, bucketSvc , ngToast , egProgressDialog) { $scope.bucketSvc = bucketSvc; $scope.bucket = function() { return bucketSvc.currentBucket } @@ -84,6 +84,7 @@ function($scope, $location, $q, $timeout, $uibModal, if (recs.length == 0) return; bucketSvc.bucketNeedsRefresh = true; + egProgressDialog.open(); var ids = recs.map(function(rec) { $scope.removeFromPendingList(rec.id); return rec.id; @@ -95,7 +96,9 @@ function($scope, $location, $q, $timeout, $uibModal, egCore.auth.token(), 'user', bucketSvc.currentBucket.id(), ids ).then( - null, // complete + function() { + egProgressDialog.close(); + }, // complete null, // error function(resp) { // HACK: add the IDs of the added items so that the size