mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 14:19:56 -05:00
Created download retry button.
This commit is contained in:
parent
bd16ad1e0c
commit
63381c1d77
8 changed files with 56 additions and 31 deletions
|
|
@ -786,6 +786,20 @@ export async function deleteOnceDownloads() {
|
|||
}
|
||||
}
|
||||
|
||||
export async function retryOnceDownloads() {
|
||||
let response = await apiPost(`${API_URI}/download/retry_once`);
|
||||
if (response.status === 204) {
|
||||
return null
|
||||
} else {
|
||||
toast({
|
||||
type: 'error',
|
||||
title: 'Error!',
|
||||
description: 'Could not retry once downloads! See server logs.',
|
||||
time: 5000,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export async function getStatistics() {
|
||||
let response = await apiGet(`${API_URI}/statistics`);
|
||||
if (response.status === 200) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue