UX(plantnet): add retry button if detection failed, fix #2148

This commit is contained in:
Pieter Vander Vennet 2024-09-16 17:33:56 +02:00
parent 9b4f59b383
commit e08ce00850
3 changed files with 24 additions and 8 deletions

View file

@ -15,7 +15,7 @@ export default class PlantNet {
for (const image of imageUrls) {
url += "&images=" + encodeURIComponent(image)
}
return Utils.downloadJsonCached(url, 365 * 24 * 60 * 60 * 1000)
return Utils.downloadJsonCached(url, 365 * 24 * 60 * 60 * 1000, undefined, true)
}
public static exampleResult: PlantNetResult = {