From 352206cfcf33b7a32c37430cd940e1bd5e144e5f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 19 May 2022 17:25:52 -0400 Subject: [PATCH] LP#1946531: (follow-up) show progress bar when adding users to bucket Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- Open-ILS/web/js/ui/default/staff/circ/patron/bucket/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.11.0