polish downloads view

This commit is contained in:
Bryan Van Deusen
2026-01-29 19:42:14 -05:00
parent fcccfb24ee
commit c1fe8148b8
4 changed files with 187 additions and 25 deletions
+10
View File
@@ -43,6 +43,14 @@ export const useDownloadsStore = defineStore('downloads', () => {
return await downloadsApi.retry(id)
}
async function resetOrphaned(thresholdMinutes = 0) {
return await downloadsApi.resetOrphaned(thresholdMinutes)
}
async function requeueStale(thresholdMinutes = 0) {
return await downloadsApi.requeueStale(thresholdMinutes)
}
return {
downloads,
recentActivity,
@@ -55,5 +63,7 @@ export const useDownloadsStore = defineStore('downloads', () => {
fetchRecentActivity,
fetchStats,
retryDownload,
resetOrphaned,
requeueStale,
}
})