Staff client changes based on feedback
authorJason Stephenson <jason@sigio.com>
Sat, 8 Jan 2022 21:14:28 +0000 (16:14 -0500)
committerJason Stephenson <jason@sigio.com>
Sat, 8 Jan 2022 21:14:28 +0000 (16:14 -0500)
Open-ILS/src/templates/staff/cat/item/index.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js
Open-ILS/web/js/ui/default/staff/circ/services/item.js

index f200f6e..0063630 100644 (file)
@@ -33,7 +33,7 @@
     s.OVERRIDE_TRANSFER_COPIES_TO_MARKED_VOLUME_BODY =
       "[% l('Reason(s) include: [_1]', '{{evt_desc}}') %]";
     s.SUCCESS_UPDATE_INVENTORY =
-      "[% l('Updated most recent inventory data for selected items.') %]";
+      "[% l('Updated most recent inventory data for [_1] items.', '{{success_count}}') %]";
     s.FAIL_UPDATE_INVENTORY =
       "[% l('Failed to update recent inventory data for selected items.')%]";
     s.ITEM_SUCCESSFULLY_MODIFIED =
index 8e21e25..8098744 100644 (file)
@@ -561,8 +561,8 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD
     $scope.update_inventory = function() {
         var copy_list = gatherSelectedHoldingsIds();
         itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res) {
-            if (res) {
-                $scope.gridControls.allItems(res);
+            if (res[0]) {
+                $scope.success_count = res[0];
                 ngToast.create(egCore.strings.SUCCESS_UPDATE_INVENTORY);
             } else {
                 ngToast.warning(egCore.strings.FAIL_UPDATE_INVENTORY);
index 872c1b5..bb46bed 100644 (file)
@@ -219,7 +219,7 @@ function(egCore , egOrg , egCirc , $uibModal , $q , $timeout , $window , ngToast
                         }
                     });
                 });
-                return all_items || res;
+                return res;
             }
         });
     }