diff --git a/frontend/components/App/ScannerModal.vue b/frontend/components/App/ScannerModal.vue index ef6ca129..a5ba56c5 100644 --- a/frontend/components/App/ScannerModal.vue +++ b/frontend/components/App/ScannerModal.vue @@ -137,6 +137,7 @@ watch(open, async isOpen => { if (isOpen) { + detectedBarcode.value = ""; await startScanner(); } else { stopScanner(); diff --git a/frontend/components/Item/BarcodeModal.vue b/frontend/components/Item/BarcodeModal.vue index a174b705..f2deee7f 100644 --- a/frontend/components/Item/BarcodeModal.vue +++ b/frontend/components/Item/BarcodeModal.vue @@ -107,6 +107,7 @@ diff --git a/frontend/locales/en.json b/frontend/locales/en.json index 9024299d..9c3aafcd 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -130,7 +130,11 @@ "product_import": { "title": "Import product", "barcode": "Product's barcode", - "search_item": "Search product" + "db_source": "DB source", + "search_item": "Search product", + "error_invalid_barcode": "Invalid barcode provided", + "error_exception": "Exception occured while retrieving item barcode: ", + "error_not_found": "No product found with give barcode." }, "view": { "selectable": { @@ -191,6 +195,9 @@ "shortcut_hint": "Use the number keys to quickly select an action." } }, + "errors": { + "api_failure": "Backend API call failed: " + }, "global": { "add": "Add", "archived": "Archived",