Skip to content

Commit c29ee67

Browse files
feat: add Refresh button next to Purge button on System Status page
1 parent c726589 commit c29ee67

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

dojo/templates/dojo/system_status.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ <h4>Celery <span id="celery-status-badge" class="label label-default">Loading...
1414
<div class="panel-body text-left" id="celery-status-msg"></div>
1515
<div class="panel-body text-left">
1616
<span id="celery-queue-msg"></span>
17-
<button id="purge-queue-btn" class="btn btn-danger btn-xs" style="margin-top: 8px; display: block" disabled title="Loading...">
18-
Purge queue
19-
</button>
17+
<div style="margin-top: 8px;">
18+
<button id="purge-queue-btn" class="btn btn-danger btn-xs" disabled title="Loading...">
19+
Purge queue
20+
</button>
21+
<button id="refresh-status-btn" class="btn btn-default btn-xs" style="margin-left: 6px;">
22+
<span class="glyphicon glyphicon-refresh"></span> Refresh
23+
</button>
24+
</div>
2025
<p class="text-muted" style="margin-top: 8px; font-size: 0.9em">
2126
<strong>Note:</strong> Purging the queue removes pending tasks that have not yet been executed,
2227
including deduplication tasks. If deduplication tasks were in the queue, you may need to
@@ -106,6 +111,8 @@ <h4>Celery <span id="celery-status-badge" class="label label-default">Loading...
106111
$(function() {
107112
loadCeleryStatus();
108113

114+
$('#refresh-status-btn').on('click', loadCeleryStatus);
115+
109116
$('#purge-queue-btn').on('click', function() {
110117
if (!confirm('Purge all pending tasks from the queue? This cannot be undone.')) return;
111118
$.ajax({

0 commit comments

Comments
 (0)