diff --git a/src/features/stock/stock-detail-page.js b/src/features/stock/stock-detail-page.js index 72c7e46..ed0a6c6 100644 --- a/src/features/stock/stock-detail-page.js +++ b/src/features/stock/stock-detail-page.js @@ -5,6 +5,7 @@ import { patchStockItem, useStockItem, } from '../../api/stock.js'; +import { BrowserMultiFormatReader } from '@zxing/browser'; import { formatPrintErrorMessage, printItemLabel } from '../../api/labels.js'; import { fetchLocations } from '../../api/locations.js'; import { getRouteContext } from '../../app/router.js'; @@ -147,6 +148,7 @@ export function renderStockDetailPage() { class="form-control" type="text" x-model="identifierDraft" + @input="identifierState.error = ''" inputmode="numeric" autocomplete="off" placeholder="EAN / UPC / GTIN" @@ -160,8 +162,16 @@ export function renderStockDetailPage() { Save identifier Saving... + -
Point your camera at the barcode to fill the identifier field.
+