Skip to content

Commit 4fa7bd8

Browse files
committed
Removed Refresh button (refresh happens in background in any case)
1 parent 0f7a179 commit 4fa7bd8

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/lib/components/jobs/JobsList.svelte

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,9 @@
5656
$: tableHandler.filter(outputDatasetFilter, 'output_dataset_id', check.isEqualTo);
5757
$: tableHandler.filter(statusFilter, 'status');
5858
59-
let reloading = false;
60-
6159
/** @type {import('$lib/components/common/StandardErrorAlert.svelte').default|undefined} */
6260
let errorAlert = undefined;
6361
64-
async function refresh() {
65-
if (errorAlert) {
66-
errorAlert.hide();
67-
}
68-
reloading = true;
69-
try {
70-
jobs = await jobUpdater();
71-
tableHandler.setRows(jobs);
72-
} catch (err) {
73-
errorAlert = displayStandardErrorAlert(err, 'jobUpdatesError');
74-
} finally {
75-
reloading = false;
76-
}
77-
}
78-
7962
/**
8063
* @param {import('$lib/types').ApplyWorkflow[]} newJobs
8164
*/
@@ -178,12 +161,6 @@
178161
Clear filters
179162
</button>
180163
{/if}
181-
<button class="btn btn-primary" on:click={refresh} disabled={reloading}>
182-
{#if reloading}
183-
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" />
184-
{/if}
185-
<i class="bi-arrow-clockwise" /> Refresh
186-
</button>
187164
<slot name="buttons" />
188165
</div>
189166
</div>

0 commit comments

Comments
 (0)