Plantnet-detection: finishing touches

This commit is contained in:
Pieter Vander Vennet 2022-08-24 01:08:54 +02:00
parent d713e00671
commit 03dad39949
4 changed files with 8 additions and 7 deletions

View file

@ -130,16 +130,17 @@ export class ImageUploadFlow extends Toggle {
return undefined;
}
if (l == 1) {
return t.uploadingPicture.Clone().SetClass("alert")
return new Loading( t.uploadingPicture).SetClass("alert")
} else {
return t.uploadingMultiple.Subs({count: "" + l}).SetClass("alert")
return new Loading(t.uploadingMultiple.Subs({count: "" + l})).SetClass("alert")
}
})),
new VariableUiElement(uploader.failed.map(q => q.length).map(l => {
if (l == 0) {
return undefined
}
return new Loading(t.uploadFailed).SetClass("alert");
console.log(l)
return t.uploadFailed.SetClass("block alert");
})),
new VariableUiElement(uploadedCount.map(l => {
if (l == 0) {