✨ feat: 'Ausgewählte starten' works for failed/aborted jobs too
Previously, 'Ausgewählte starten' only picked up jobs with status 'preview' or 'queued', silently ignoring failed/aborted/skipped jobs. Users had to click 'Erneut versuchen' separately first. Now it resets error/aborted/skipped jobs to 'queued' and starts them in one click — combining retry + start into a single action. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3a890301a5
commit
d02d6944d3
@ -1346,12 +1346,18 @@ async function startSelectedUpload() {
|
||||
const hosters = getSelectedHosters();
|
||||
if (hosters.length === 0) { alert('Bitte mindestens einen Hoster auswählen.'); uploading = false; updateQueueActionButtons(); return; }
|
||||
|
||||
const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && (job.status === 'preview' || job.status === 'queued'));
|
||||
const jobsToStart = queueJobs.filter((job) => selectedJobIds.has(job.id) && ['preview', 'queued', 'error', 'aborted', 'skipped'].includes(job.status));
|
||||
if (jobsToStart.length === 0) { uploading = false; updateQueueActionButtons(); return; }
|
||||
|
||||
try {
|
||||
jobsToStart.forEach(j => {
|
||||
if (j.status === 'preview') j.status = 'queued';
|
||||
j.status = 'queued';
|
||||
j.error = null;
|
||||
j.result = null;
|
||||
j.bytesUploaded = 0;
|
||||
j.speedKbs = 0;
|
||||
j.progress = 0;
|
||||
j.uploadId = null;
|
||||
});
|
||||
updateQueueActionButtons();
|
||||
renderQueueTable();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user