Plantnet-detection: finishing touches
This commit is contained in:
parent
d713e00671
commit
03dad39949
4 changed files with 8 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue