From 4c3d37b311991dcbb76e984c299d5c5517bd2437 Mon Sep 17 00:00:00 2001 From: fhfuih Date: Fri, 13 Mar 2020 13:21:21 -0400 Subject: [PATCH] Revert "Add "retry all" option to synchronisation page" This reverts commit 15daaa16fdb961003af78d54a083a3a35c79d7b3. --- ElectronClient/gui/StatusScreen.jsx | 31 +---------------------------- 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/ElectronClient/gui/StatusScreen.jsx b/ElectronClient/gui/StatusScreen.jsx index 8e5de29e4..006c4ed3b 100644 --- a/ElectronClient/gui/StatusScreen.jsx +++ b/ElectronClient/gui/StatusScreen.jsx @@ -55,8 +55,6 @@ class StatusScreenComponent extends React.Component { height: style.height - theme.headerHeight - containerPadding * 2, }); - let retryHandlers = []; - function renderSectionTitleHtml(key, title) { return (

@@ -83,8 +81,6 @@ class StatusScreenComponent extends React.Component { this.resfreshScreen(); }; - retryHandlers.push(item.retryHandler); - retryLink = ( {_('Retry')} @@ -109,24 +105,6 @@ class StatusScreenComponent extends React.Component { return
{itemsHtml}
; }; - function renderRetryAllHtml() { - let retryAllLink = null; - if (retryHandlers.length > 1) { - const onClick = async () => { - await Promise.all(retryHandlers.map(handler => handler())); - this.resfreshScreen(); - }; - retryAllLink = ( -
- - {_('Retry All')} - -
- ); - } - return retryAllLink; - } - function renderBodyHtml(report) { let sectionsHtml = []; @@ -136,14 +114,7 @@ class StatusScreenComponent extends React.Component { sectionsHtml.push(renderSectionHtml(i, section)); } - let retryAllHtml = renderRetryAllHtml(); // must be called after renderSectionHtml - - return ( -
- {retryAllHtml} - {sectionsHtml} -
- ); + return
{sectionsHtml}
; } let body = renderBodyHtml(this.state.report);