2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-08-09 05:50:57 +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:
Oliver Walters
2022-06-03 20:23:59 +10:00
parent 99462ffeb9
commit dbc024491c
5 changed files with 74 additions and 120 deletions

View File

@@ -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,
);