Minor bugfixes

This commit is contained in:
2025-03-19 23:16:11 +01:00
parent 03fec1ebd7
commit 475690ca2b
7 changed files with 9 additions and 7 deletions

View File

@@ -216,7 +216,7 @@ scannerField.addEventListener('keydown', async function(event) {
let product = globalData.find(p => p.gtin == barcode);
if(product) {
let event = new Event('click');
createTemporaryNotification(`<i class="bi bi-upc-scan"></i> Barcode scan: GTIN ${barcode} gefunden`, 'is-success');
createTemporaryNotification(`<i class="bi bi-upc-scan"></i> Barcode scan: GTIN ${barcode} gefunden`, 'is-success', 2000);
document.getElementById(`product_${product.id}`).dispatchEvent(event);
} else {
createTemporaryNotification( `<i class="bi bi-upc-scan"></i> Barcode scan: GTIN ${barcode} nicht gefunden`, 'is-danger');