fix: upload notification was using "success" style even for failure
Massimo Melina committed
May 30, 2024 at 11:04 UTC
731a55543d54e3dec80825e2a0506feac67d7e54
1 file changed
+2
-2
frontend/src/upload.ts
+2
-2
@@ -411,8 +411,8 @@ async function startUpload(toUpload: ToUpload, to: string, resume=0) {
411
resetCounters()
412
const msg = h('div', {}, t(['upload_concluded', "Upload terminated"], "Upload concluded:"),
413
h(UploadStatus, { snapshot: snap, display: 'flex', flexDirection: 'column' }) )
414
- if (uploadState.errors.length || uploadState.skipped.length)
415
- alertDialog(msg, 'info')
414
+ if (snap.errors.length || snap.skipped.length)
415
+ alertDialog(msg, 'warning')
416
else
417
toast(msg, 'success')
418
}