mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Fix references for showServerError
This commit is contained in:
parent
f91c40cccd
commit
96ba41474f
2 changed files with 12 additions and 9 deletions
|
|
@ -227,7 +227,7 @@ class BarcodeScanHandler extends BarcodeHandler {
|
|||
title: Text(I18N.of(_context).unknownResponse),
|
||||
children: <Widget>[
|
||||
ListTile(
|
||||
title: Text("Response data"),
|
||||
title: Text(I18N.of(_context).responseData),
|
||||
subtitle: Text(data.toString()),
|
||||
)
|
||||
],
|
||||
|
|
@ -270,7 +270,10 @@ class StockItemBarcodeAssignmentHandler extends BarcodeHandler {
|
|||
// If the barcode is unknown, we *can* assign it to the stock item!
|
||||
|
||||
if (!data.containsKey("hash")) {
|
||||
showServerError("Missing data", "Barcode hash data missing from response");
|
||||
showServerError(
|
||||
I18N.of(_context).missingData,
|
||||
I18N.of(_context).barcodeMissingHash,
|
||||
);
|
||||
} else {
|
||||
|
||||
// Send the 'hash' code as the UID for the stock item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue