2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Add display for part information

- Very sparse currently
This commit is contained in:
Oliver Walters
2020-04-03 11:14:25 +11:00
parent d3415e5ebe
commit 718f89b339
3 changed files with 84 additions and 7 deletions

View File

@ -75,7 +75,13 @@ class InvenTreeModel {
// TODO - Add "timeout"
// TODO - Add error catching
var response = await InvenTreeAPI().get(path.join(URL, pk.toString()));
var addr = path.join(URL, pk.toString());
if (!addr.endsWith("/")) {
addr += "/";
}
var response = await InvenTreeAPI().get(addr);
if (response.statusCode != 200) {
print("Error retrieving data");