mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add barcode scan context
This commit is contained in:
parent
610f6533d0
commit
e2ed80f2d0
2 changed files with 2 additions and 1 deletions
|
|
@ -99,6 +99,7 @@ class BarcodeHandler {
|
||||||
"valid": response.isValid().toString(),
|
"valid": response.isValid().toString(),
|
||||||
"error": response.error,
|
"error": response.error,
|
||||||
"errorDetail": response.errorDetail,
|
"errorDetail": response.errorDetail,
|
||||||
|
"overlayText": getOverlayText(context),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else if (data.containsKey("error")) {
|
} else if (data.containsKey("error")) {
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ class InvenTreeModel {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> reportModelError(String title, APIResponse response, {Map<String, String> context = {}}) async {
|
Future<void> reportModelError(String title, APIResponse response, {Map<String, String> context = const {}}) async {
|
||||||
|
|
||||||
String dataString = response.data?.toString() ?? "null";
|
String dataString = response.data?.toString() ?? "null";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue