diff options
Diffstat (limited to 'src/components/layout')
-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" |