diff options
author | 2019-08-26 22:09:27 +0200 | |
---|---|---|
committer | 2019-08-26 22:09:27 +0200 | |
commit | 04c169c56da24ecd694521989d039ec0e7d29b49 (patch) | |
tree | cacf7d03f6f4e256a76b1ac3078a040c2c14c547 /src/components/layout/AppLayout.js | |
parent | Remove share popup (diff) | |
download | ferdium-app-04c169c56da24ecd694521989d039ec0e7d29b49.tar.gz ferdium-app-04c169c56da24ecd694521989d039ec0e7d29b49.tar.zst ferdium-app-04c169c56da24ecd694521989d039ec0e7d29b49.zip |
Fix random logout issues
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r-- | src/components/layout/AppLayout.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index 0aeee6781..02550c87f 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -60,6 +60,7 @@ class AppLayout extends Component { | |||
60 | showServicesUpdatedInfoBar: PropTypes.bool.isRequired, | 60 | showServicesUpdatedInfoBar: PropTypes.bool.isRequired, |
61 | appUpdateIsDownloaded: PropTypes.bool.isRequired, | 61 | appUpdateIsDownloaded: PropTypes.bool.isRequired, |
62 | nextAppReleaseVersion: PropTypes.string, | 62 | nextAppReleaseVersion: PropTypes.string, |
63 | authRequestFailed: PropTypes.bool.isRequired, | ||
63 | removeNewsItem: PropTypes.func.isRequired, | 64 | removeNewsItem: PropTypes.func.isRequired, |
64 | reloadServicesAfterUpdate: PropTypes.func.isRequired, | 65 | reloadServicesAfterUpdate: PropTypes.func.isRequired, |
65 | installAppUpdate: PropTypes.func.isRequired, | 66 | installAppUpdate: PropTypes.func.isRequired, |
@@ -91,6 +92,7 @@ class AppLayout extends Component { | |||
91 | showServicesUpdatedInfoBar, | 92 | showServicesUpdatedInfoBar, |
92 | appUpdateIsDownloaded, | 93 | appUpdateIsDownloaded, |
93 | nextAppReleaseVersion, | 94 | nextAppReleaseVersion, |
95 | authRequestFailed, | ||
94 | removeNewsItem, | 96 | removeNewsItem, |
95 | reloadServicesAfterUpdate, | 97 | reloadServicesAfterUpdate, |
96 | installAppUpdate, | 98 | installAppUpdate, |
@@ -143,6 +145,18 @@ class AppLayout extends Component { | |||
143 | {intl.formatMessage(messages.requiredRequestsFailed)} | 145 | {intl.formatMessage(messages.requiredRequestsFailed)} |
144 | </InfoBar> | 146 | </InfoBar> |
145 | )} | 147 | )} |
148 | {authRequestFailed && ( | ||
149 | <InfoBar | ||
150 | type="danger" | ||
151 | ctaLabel="Try again" | ||
152 | ctaLoading={areRequiredRequestsLoading} | ||
153 | sticky | ||
154 | onClick={retryRequiredRequests} | ||
155 | > | ||
156 | <span className="mdi mdi-flash" /> | ||
157 | There were errors while trying to perform an authenticated request. Please try logging out and back in if this error persists. | ||
158 | </InfoBar> | ||
159 | )} | ||
146 | {showServicesUpdatedInfoBar && ( | 160 | {showServicesUpdatedInfoBar && ( |
147 | <InfoBar | 161 | <InfoBar |
148 | type="primary" | 162 | type="primary" |