mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-03 23:05:44 +00:00 
			
		
		
		
	Add barcode scan context
This commit is contained in:
		@@ -99,6 +99,7 @@ class BarcodeHandler {
 | 
			
		||||
              "valid": response.isValid().toString(),
 | 
			
		||||
              "error": response.error,
 | 
			
		||||
              "errorDetail": response.errorDetail,
 | 
			
		||||
              "overlayText": getOverlayText(context),
 | 
			
		||||
            }
 | 
			
		||||
        );
 | 
			
		||||
      } else if (data.containsKey("error")) {
 | 
			
		||||
 
 | 
			
		||||
@@ -233,7 +233,7 @@ class InvenTreeModel {
 | 
			
		||||
    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";
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user