From 04c169c56da24ecd694521989d039ec0e7d29b49 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Mon, 26 Aug 2019 22:09:27 +0200 Subject: Fix random logout issues --- src/components/layout/AppLayout.js | 14 ++++++++++++++ src/containers/layout/AppLayoutContainer.js | 1 + src/stores/AppStore.js | 2 ++ src/stores/GlobalErrorStore.js | 5 ++++- src/stores/NewsStore.js | 4 +--- src/styles/auth.scss | 2 +- src/styles/colors.scss | 1 + src/theme/default/legacy.js | 2 +- 8 files changed, 25 insertions(+), 6 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 { showServicesUpdatedInfoBar: PropTypes.bool.isRequired, appUpdateIsDownloaded: PropTypes.bool.isRequired, nextAppReleaseVersion: PropTypes.string, + authRequestFailed: PropTypes.bool.isRequired, removeNewsItem: PropTypes.func.isRequired, reloadServicesAfterUpdate: PropTypes.func.isRequired, installAppUpdate: PropTypes.func.isRequired, @@ -91,6 +92,7 @@ class AppLayout extends Component { showServicesUpdatedInfoBar, appUpdateIsDownloaded, nextAppReleaseVersion, + authRequestFailed, removeNewsItem, reloadServicesAfterUpdate, installAppUpdate, @@ -143,6 +145,18 @@ class AppLayout extends Component { {intl.formatMessage(messages.requiredRequestsFailed)} )} + {authRequestFailed && ( + + + There were errors while trying to perform an authenticated request. Please try logging out and back in if this error persists. + + )} {showServicesUpdatedInfoBar && (