mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-03 07:48:53 +00:00
Add barcode scan context
This commit is contained in:
parent
610f6533d0
commit
e2ed80f2d0
@ -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…
x
Reference in New Issue
Block a user