Skip to content

Commit 261ff1c

Browse files
committed
Remove Prowlarr refresh button and related functionality from the UI
- Eliminated the refresh button for Prowlarr data in the home section to streamline the interface. - Removed associated methods for handling the refresh action, including event listeners and notification logic. - Added a status legend to provide clearer visibility on indexer statuses, including 'Active', 'Throttled', and 'Failed'.
1 parent ff30e08 commit 261ff1c

File tree

2 files changed

+18
-43
lines changed

2 files changed

+18
-43
lines changed

frontend/static/js/new-main.js

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,9 +2359,6 @@ let huntarrUI = {
23592359
this.updateIndexersList(null, 'Prowlarr is disconnected');
23602360
}
23612361

2362-
// Setup refresh button
2363-
this.setupProwlarrRefreshButton();
2364-
23652362
} else {
23662363
// Hide card if not configured or disabled
23672364
prowlarrCard.style.display = 'none';
@@ -2523,46 +2520,7 @@ let huntarrUI = {
25232520
indexersList.innerHTML = indexersHtml;
25242521
},
25252522

2526-
// Setup Prowlarr refresh button
2527-
setupProwlarrRefreshButton: function() {
2528-
const refreshButton = document.getElementById('refresh-prowlarr-data');
2529-
if (refreshButton) {
2530-
refreshButton.addEventListener('click', () => {
2531-
this.refreshProwlarrData();
2532-
});
2533-
}
2534-
},
25352523

2536-
// Refresh Prowlarr data
2537-
refreshProwlarrData: function() {
2538-
// Prevent multiple refreshes
2539-
if (this.prowlarrRefreshInProgress) {
2540-
return;
2541-
}
2542-
2543-
this.prowlarrRefreshInProgress = true;
2544-
2545-
// Update button to show refreshing state
2546-
const refreshButton = document.getElementById('refresh-prowlarr-data');
2547-
if (refreshButton) {
2548-
const originalText = refreshButton.innerHTML;
2549-
refreshButton.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Refreshing...';
2550-
refreshButton.disabled = true;
2551-
2552-
// Restore button after refresh
2553-
setTimeout(() => {
2554-
refreshButton.innerHTML = originalText;
2555-
refreshButton.disabled = false;
2556-
this.prowlarrRefreshInProgress = false;
2557-
}, 2000);
2558-
}
2559-
2560-
// Reload Prowlarr status and stats
2561-
this.loadProwlarrStatus();
2562-
2563-
// Show notification
2564-
this.showNotification('Prowlarr data refreshed', 'success');
2565-
},
25662524

25672525

25682526
// User

frontend/templates/components/home_section.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,6 @@ <h3><i class="fas fa-download"></i> Swaparr Status</h3>
794794
<div class="card stats-card" id="prowlarrStatusCard" style="display: none;">
795795
<div class="card-header">
796796
<h3><i class="fas fa-search"></i> Prowlarr Monitor</h3>
797-
<button id="refresh-prowlarr-data" class="action-button success"><i class="fas fa-sync-alt"></i> Refresh</button>
798797
</div>
799798

800799
<!-- Main Prowlarr Card -->
@@ -834,6 +833,24 @@ <h5><i class="fas fa-clock"></i> Statistics</h5>
834833
</div>
835834
</div>
836835

836+
<!-- Status Legend (Hidden on Mobile) -->
837+
<div class="prowlarr-legend">
838+
<div class="legend-title">Status Legend:</div>
839+
<div class="legend-items">
840+
<div class="legend-item">
841+
<span class="indexer-status active">Active</span>
842+
<span class="legend-description">Indexer is working normally</span>
843+
</div>
844+
<div class="legend-item">
845+
<span class="indexer-status throttled">Throttled</span>
846+
<span class="legend-description">Rate limited - reduce search frequency</span>
847+
</div>
848+
<div class="legend-item">
849+
<span class="indexer-status failed">Failed</span>
850+
<span class="legend-description">Disabled or not responding</span>
851+
</div>
852+
</div>
853+
</div>
837854

838855
</div>
839856

0 commit comments

Comments
 (0)