Try to get value in toast
authorJason Stephenson <jason@sigio.com>
Sat, 8 Jan 2022 21:37:28 +0000 (16:37 -0500)
committerJason Stephenson <jason@sigio.com>
Sat, 8 Jan 2022 21:37:28 +0000 (16:37 -0500)
Open-ILS/web/js/ui/default/staff/cat/item/app.js

index 8098744..56175a5 100644 (file)
@@ -563,7 +563,7 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD
         itemSvc.updateInventory(copy_list, $scope.gridControls.allItems()).then(function(res) {
             if (res[0]) {
                 $scope.success_count = res[0];
-                ngToast.create(egCore.strings.SUCCESS_UPDATE_INVENTORY);
+                ngToast.open(scope: $scope, template: egCore.strings.SUCCESS_UPDATE_INVENTORY);
             } else {
                 ngToast.warning(egCore.strings.FAIL_UPDATE_INVENTORY);
             }