download the queue
This commit is contained in:
@@ -97,6 +97,11 @@ class QueueManager {
|
||||
this.showToast('All downloads completed!', 'success');
|
||||
this.loadQueueData(); // Refresh data
|
||||
});
|
||||
|
||||
this.socket.on('queue_completed', () => {
|
||||
this.showToast('All downloads completed!', 'success');
|
||||
this.loadQueueData(); // Refresh data
|
||||
});
|
||||
|
||||
this.socket.on('download_stop_requested', () => {
|
||||
this.showToast('Stopping downloads...', 'info');
|
||||
@@ -592,7 +597,7 @@ class QueueManager {
|
||||
const data = await response.json();
|
||||
|
||||
if (data.status === 'success') {
|
||||
this.showToast('Download started', 'success');
|
||||
this.showToast('Queue processing started - all items will download automatically', 'success');
|
||||
|
||||
// Update UI
|
||||
document.getElementById('start-queue-btn').style.display = 'none';
|
||||
@@ -601,11 +606,11 @@ class QueueManager {
|
||||
|
||||
this.loadQueueData(); // Refresh display
|
||||
} else {
|
||||
this.showToast(`Failed to start download: ${data.message || 'Unknown error'}`, 'error');
|
||||
this.showToast(`Failed to start queue: ${data.message || 'Unknown error'}`, 'error');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error starting download:', error);
|
||||
this.showToast('Failed to start download', 'error');
|
||||
console.error('Error starting queue:', error);
|
||||
this.showToast('Failed to start queue processing', 'error');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user