mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Pass URL through to the showServeError method
- Can decide, based on the URL, if we want to show an error
This commit is contained in:
parent
99462ffeb9
commit
dbc024491c
5 changed files with 74 additions and 120 deletions
|
|
@ -81,7 +81,7 @@ class BarcodeHandler {
|
|||
barcodeFailureTone();
|
||||
|
||||
// Called when the server returns an unhandled response
|
||||
showServerError(L10().responseUnknown, data.toString());
|
||||
showServerError("barcode/", L10().responseUnknown, data.toString());
|
||||
|
||||
_controller?.resumeCamera();
|
||||
}
|
||||
|
|
@ -440,6 +440,7 @@ class UniqueBarcodeHandler extends BarcodeHandler {
|
|||
|
||||
if (!data.containsKey("hash")) {
|
||||
showServerError(
|
||||
"barcode/",
|
||||
L10().missingData,
|
||||
L10().barcodeMissingHash,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue