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

More code cleanup

This commit is contained in:
Oliver
2021-08-02 21:53:57 +10:00
parent 68859b3d2e
commit d47a8db289
7 changed files with 15 additions and 50 deletions

View File

@ -26,7 +26,7 @@ class InvenTreePageResponse {
List<InvenTreeModel> results = [];
}
/**
/*
* The InvenTreeModel class provides a base-level object
* for interacting with InvenTree data.
*/
@ -105,12 +105,9 @@ class InvenTreeModel {
void openLink() async {
if (link.isNotEmpty) {
print("Opening link: ${link}");
if (await canLaunch(link)) {
await launch(link);
} else {
// TODO
}
}
}

View File

@ -320,7 +320,7 @@ class InvenTreeStockItem extends InvenTreeModel {
return img;
}
/**
/*
* Return the Part thumbnail for this stock item.
*/
String get partThumbnail {