From 89bb64011204d23b7011088d4ea5f075636e855c Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 13 Apr 2024 09:05:56 +0200 Subject: [PATCH] feat(worker.js): clear old job card on restart Ensure previous job cards are removed when a conversion job is restarted. This change addresses the accumulation of stale job cards in the UI, mitigating clutter and enhancing user experience by only displaying relevant, active jobs. --- src/pix360core/static/js/worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pix360core/static/js/worker.js b/src/pix360core/static/js/worker.js index 7347499..6f6ce04 100644 --- a/src/pix360core/static/js/worker.js +++ b/src/pix360core/static/js/worker.js @@ -88,6 +88,7 @@ function restartconversion(jobid, title) { var interval = setInterval(checkServerForFile, 3000, msg.id, title); intervals[msg.id] = interval; addcard(msg.id, title); + deletecard(jobid); }, }); }