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:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -320,7 +320,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
return img;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Return the Part thumbnail for this stock item.
|
||||
*/
|
||||
String get partThumbnail {
|
||||
|
Reference in New Issue
Block a user