diff --git a/frontend/app.js b/frontend/app.js index 71d064b..3acae4f 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -66,7 +66,10 @@ function render(){ ${it.message ? `${it.message}` : ''} -
${it.status}
+
+ ${it.status} + ${it.status==='error' ? `` : ''} +
@@ -77,6 +80,23 @@ function render(){
`).join(''); + // Attach retry handlers for errored items + try { + itemsEl.querySelectorAll('.btnRetry').forEach(btn => { + btn.addEventListener('click', (e) => { + e.preventDefault(); + const id = btn.getAttribute('data-id'); + const it = items.find(x => x.id === id); + if (!it) return; + it.status = 'queued'; + it.progress = 0; + try { delete it.message; } catch {} + render(); + runQueue(); + }); + }); + } catch {} + const c = {queued:0,uploading:0,done:0,dup:0,err:0}; for(const it of items){ if(['queued','checking'].includes(it.status)) c.queued++; diff --git a/frontend/index.html b/frontend/index.html index f73f723..752d5c9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -62,18 +62,20 @@
-
-
- Queued/Processing: 0 - Uploading: 0 - Done: 0 - Duplicates: 0 - Errors: 0 -
-
+
+ +
+ +
+ Queued/Processing: 0 + Uploading: 0 + Done: 0 + Duplicates: 0 + Errors: 0 +
diff --git a/frontend/invite.html b/frontend/invite.html index 9680429..fb20929 100644 --- a/frontend/invite.html +++ b/frontend/invite.html @@ -72,13 +72,19 @@
-
-
- Queued/Processing: 0 - Uploading: 0 - Done: 0 - Duplicates: 0 - Errors: 0 +
+ +
+ + +
+ +
+ Queued/Processing: 0 + Uploading: 0 + Done: 0 + Duplicates: 0 + Errors: 0