mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 13:19:58 -05:00
Moving FileGroups instead of refreshing files after they have been moved.
This commit is contained in:
parent
6fe8a7b704
commit
0f232fd533
59 changed files with 1902 additions and 1040 deletions
|
|
@ -255,18 +255,7 @@ class RecurringDownloadRow extends React.Component {
|
|||
handleRestart = async () => {
|
||||
const {id} = this.props;
|
||||
try {
|
||||
const response = await restartDownload(id);
|
||||
if (response.status !== 204) {
|
||||
throw Error('Unable to restart download');
|
||||
}
|
||||
} catch (e) {
|
||||
toast({
|
||||
type: 'error',
|
||||
title: 'Error',
|
||||
description: 'Unable to restart download',
|
||||
time: 5000,
|
||||
})
|
||||
throw e;
|
||||
await restartDownload(id);
|
||||
} finally {
|
||||
if (this.props.fetchDownloads) {
|
||||
this.props.fetchDownloads();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue