Created download retry button.

This commit is contained in:
Roland 2024-05-08 17:02:27 -06:00
parent bd16ad1e0c
commit 63381c1d77
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 56 additions and 31 deletions

View file

@ -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) {