From b92a0d5e41e0647593fd5a1cd534ccdcd48b9e8a Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 7 Sep 2023 21:47:43 -0600 Subject: [PATCH] Rewording retry button to restart. --- app/src/components/admin/Downloads.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/components/admin/Downloads.js b/app/src/components/admin/Downloads.js index ca29f16b..32496a3c 100644 --- a/app/src/components/admin/Downloads.js +++ b/app/src/components/admin/Downloads.js @@ -87,7 +87,7 @@ class RecurringDownloadRow extends React.Component { } } - handleRetry = async () => { + handleRestart = async () => { const {id} = this.props; try { const response = await restartDownload(id); @@ -98,7 +98,7 @@ class RecurringDownloadRow extends React.Component { toast({ type: 'error', title: 'Error', - description: 'Unable to start download', + description: 'Unable to restart download', time: 5000, }) throw e; @@ -144,13 +144,13 @@ class RecurringDownloadRow extends React.Component { /> ; - const retryButton = <> + const restartButton = <> ; @@ -176,7 +176,7 @@ class RecurringDownloadRow extends React.Component { {error && errorModal} {deleteButton} - {retryButton} + {restartButton} } @@ -197,14 +197,14 @@ class OnceDownloadRow extends React.Component { await this.props.fetchDownloads(); }; - handleStart = async () => { + handleRestart = async () => { try { await restartDownload(this.props.id); } catch (e) { toast({ type: 'error', title: 'Error', - description: 'Unable to start download', + description: 'Unable to restart download', time: 5000, }) throw e; @@ -250,7 +250,7 @@ class OnceDownloadRow extends React.Component { icon='redo' confirmContent='Are you sure you want to restart this download?' confirmButton='Start' - onClick={this.handleStart} + onClick={this.handleRestart} obeyWROLMode={true} />