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
This commit is contained in:
parent
69ae2661d2
commit
a270f12855
@ -444,12 +444,12 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
frappe.show_alert({
|
frappe.show_alert({
|
||||||
message: __('Row #{0}: Qty increased by 1', [idx]),
|
message: __('Row #{0}: Qty increased by 1', [idx]),
|
||||||
indicator: 'green'
|
indicator: 'green'
|
||||||
});
|
}, 5);
|
||||||
} else {
|
} else {
|
||||||
frappe.show_alert({
|
frappe.show_alert({
|
||||||
message: __('Row #{0}: Item added', [idx]),
|
message: __('Row #{0}: Item added', [idx]),
|
||||||
indicator: 'green'
|
indicator: 'green'
|
||||||
});
|
}, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user