mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Display part image in stock list
This commit is contained in:
parent
c8f09ed62e
commit
1d1bdb1a4b
3 changed files with 32 additions and 4 deletions
|
|
@ -300,6 +300,10 @@ class InvenTreeAPI {
|
|||
*/
|
||||
AdvancedNetworkImage getImage(String imageUrl) {
|
||||
|
||||
if (imageUrl.isEmpty) {
|
||||
imageUrl = staticImage;
|
||||
}
|
||||
|
||||
return new AdvancedNetworkImage(makeUrl(imageUrl),
|
||||
header: defaultHeaders(),
|
||||
useDiskCache: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue