From a270f12855c1454c365a6ae8df49a9daa07971dc Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sun, 27 Mar 2022 18:18:16 +0530 Subject: [PATCH] fix(UX): reduce duration of barcode scan toasts default is 7 which is bit too much when you're scanning lots of items, switched to 5 sec delay --- erpnext/public/js/controllers/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index a8cec0ad12..5a4519fce5 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -444,12 +444,12 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe frappe.show_alert({ message: __('Row #{0}: Qty increased by 1', [idx]), indicator: 'green' - }); + }, 5); } else { frappe.show_alert({ message: __('Row #{0}: Item added', [idx]), indicator: 'green' - }); + }, 5); } }