cleanup unused methods
This commit is contained in:
@@ -147,10 +147,6 @@ class QueueManager {
|
||||
this.retryAllFailed();
|
||||
});
|
||||
|
||||
document.getElementById('reorder-queue-btn').addEventListener('click', () => {
|
||||
this.toggleReorderMode();
|
||||
});
|
||||
|
||||
// Download controls
|
||||
document.getElementById('start-queue-btn').addEventListener('click', () => {
|
||||
this.startDownloadQueue();
|
||||
@@ -160,14 +156,6 @@ class QueueManager {
|
||||
this.stopDownloadQueue();
|
||||
});
|
||||
|
||||
document.getElementById('pause-all-btn').addEventListener('click', () => {
|
||||
this.pauseAllDownloads();
|
||||
});
|
||||
|
||||
document.getElementById('resume-all-btn').addEventListener('click', () => {
|
||||
this.resumeAllDownloads();
|
||||
});
|
||||
|
||||
// Modal events
|
||||
document.getElementById('close-confirm').addEventListener('click', () => {
|
||||
this.hideConfirmModal();
|
||||
@@ -309,14 +297,6 @@ class QueueManager {
|
||||
<h4>${this.escapeHtml(download.serie_name)}</h4>
|
||||
<p>${this.escapeHtml(download.episode.season)}x${String(download.episode.episode).padStart(2, '0')} - ${this.escapeHtml(download.episode.title || 'Episode ' + download.episode.episode)}</p>
|
||||
</div>
|
||||
<div class="download-actions">
|
||||
<button class="btn btn-small btn-secondary" onclick="queueManager.pauseDownload('${download.id}')">
|
||||
<i class="fas fa-pause"></i>
|
||||
</button>
|
||||
<button class="btn btn-small btn-error" onclick="queueManager.cancelDownload('${download.id}')">
|
||||
<i class="fas fa-stop"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="download-progress">
|
||||
<div class="progress-bar">
|
||||
@@ -482,7 +462,6 @@ class QueueManager {
|
||||
document.getElementById('start-queue-btn').style.display = 'inline-flex';
|
||||
}
|
||||
|
||||
document.getElementById('pause-all-btn').disabled = !hasActive;
|
||||
document.getElementById('clear-queue-btn').disabled = !hasPending;
|
||||
document.getElementById('retry-all-btn').disabled = !hasFailed;
|
||||
document.getElementById('clear-completed-btn').disabled = !hasCompleted;
|
||||
@@ -688,21 +667,6 @@ class QueueManager {
|
||||
}
|
||||
}
|
||||
|
||||
pauseAllDownloads() {
|
||||
// TODO: Implement pause functionality
|
||||
this.showToast('Pause functionality not yet implemented', 'info');
|
||||
}
|
||||
|
||||
resumeAllDownloads() {
|
||||
// TODO: Implement resume functionality
|
||||
this.showToast('Resume functionality not yet implemented', 'info');
|
||||
}
|
||||
|
||||
toggleReorderMode() {
|
||||
// Drag and drop is always enabled, no need for toggle mode
|
||||
this.showToast('Drag items to reorder the queue', 'info');
|
||||
}
|
||||
|
||||
initDragAndDrop() {
|
||||
// Initialize drag and drop on the pending queue container
|
||||
const container = document.getElementById('pending-queue');
|
||||
|
||||
@@ -106,16 +106,6 @@
|
||||
<i class="fas fa-play-circle"></i>
|
||||
Active Downloads
|
||||
</h2>
|
||||
<div class="section-actions">
|
||||
<button id="pause-all-btn" class="btn btn-secondary" disabled>
|
||||
<i class="fas fa-pause"></i>
|
||||
Pause All
|
||||
</button>
|
||||
<button id="resume-all-btn" class="btn btn-primary" disabled style="display: none;">
|
||||
<i class="fas fa-play"></i>
|
||||
Resume All
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="active-downloads-list" id="active-downloads">
|
||||
|
||||
Reference in New Issue
Block a user