Modern attachments (#505)

* Minimum API version is now 100

* Remove old API features

- Anything below API v100 no longer supported

* Reefactor attachment widget to support modern attachment API

* Filter and display attachments correctly

* Refactor
This commit is contained in:
Oliver 2024-06-11 23:16:01 +10:00 committed by GitHub
parent c3eb1a5fca
commit e837394495
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 151 additions and 167 deletions

View file

@ -341,12 +341,7 @@ class UniqueBarcodeHandler extends BarcodeHandler {
} else {
String barcode;
if (InvenTreeAPI().supportModernBarcodes) {
barcode = (data["barcode_data"] ?? "") as String;
} else {
// Legacy barcode API
barcode = (data["hash"] ?? data["barcode_hash"] ?? "") as String;
}
barcode = (data["barcode_data"] ?? "") as String;
if (barcode.isEmpty) {
barcodeFailureTone();