Moar Toast!
authorJason Stephenson <jason@sigio.com>
Sun, 9 Jan 2022 01:13:38 +0000 (20:13 -0500)
committerJason Stephenson <jason@sigio.com>
Sun, 9 Jan 2022 01:13:38 +0000 (20:13 -0500)
Open-ILS/src/templates/staff/cat/item/index.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index f200f6e..8980a65 100644 (file)
       "[% l('Updated most recent inventory data for selected items.') %]";
     s.FAIL_UPDATE_INVENTORY =
       "[% l('Failed to update recent inventory data for selected items.')%]";
+    s.SUCCESS_UPDATE_INVENTORY_SINGLE =
+      "[% l('Updated most recent inventory data for this item.') %]";
+    s.FAIL_UPDATE_INVENTORY_SINGLE =
+      "[% l('Failed to update recent inventory data for this item.')%]";
     s.ITEM_SUCCESSFULLY_MODIFIED =
       "[% l('Item successfully modified') %]";
     s.ITEMS_SUCCESSFULLY_MODIFIED =
index 7346e2a..9ad7a08 100644 (file)
@@ -157,9 +157,9 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD
         itemSvc.updateInventory([$scope.args.copyId], null)
         .then(function(res) {
             if (res[0]) {
-                ngToast.create(egCore.strings.SUCCESS_UPDATE_INVENTORY);
+                ngToast.create(egCore.strings.SUCCESS_UPDATE_INVENTORY_SINGLE);
             } else {
-                ngToast.warning(egCore.strings.FAIL_UPDATE_INVENTORY);
+                ngToast.warning(egCore.strings.FAIL_UPDATE_INVENTORY_SINGLE);
             }
             $timeout(function() { location.href = location.href; }, 1000);
         });