polish downloads view
This commit is contained in:
@@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user