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.
This commit is contained in:
parent
a1e4fe47b6
commit
89bb640112
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ function restartconversion(jobid, title) {
|
||||||
var interval = setInterval(checkServerForFile, 3000, msg.id, title);
|
var interval = setInterval(checkServerForFile, 3000, msg.id, title);
|
||||||
intervals[msg.id] = interval;
|
intervals[msg.id] = interval;
|
||||||
addcard(msg.id, title);
|
addcard(msg.id, title);
|
||||||
|
deletecard(jobid);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue