From 7e332dc4b7a5fe0c275a8d802752d7ba5dc3d4ec Mon Sep 17 00:00:00 2001 From: vantezzen Date: Sun, 20 Oct 2019 20:08:57 +0200 Subject: Improve switch between accounts and servers --- src/containers/auth/AuthLayoutContainer.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/containers/auth/AuthLayoutContainer.js') diff --git a/src/containers/auth/AuthLayoutContainer.js b/src/containers/auth/AuthLayoutContainer.js index 427054d3d..883a6ea60 100644 --- a/src/containers/auth/AuthLayoutContainer.js +++ b/src/containers/auth/AuthLayoutContainer.js @@ -5,6 +5,7 @@ import { ThemeProvider } from 'react-jss'; import AuthLayout from '../../components/auth/AuthLayout'; import AppStore from '../../stores/AppStore'; +import UserStore from '../../stores/UserStore'; import GlobalErrorStore from '../../stores/GlobalErrorStore'; import AppLoader from '../../components/ui/AppLoader'; @@ -23,7 +24,7 @@ export default @inject('stores', 'actions') @observer class AuthLayoutContainer stores, actions, children, location, } = this.props; const { - app, features, globalError, + app, features, globalError, user, } = stores; const isLoadingBaseFeatures = features.defaultFeaturesRequest.isExecuting @@ -37,6 +38,15 @@ export default @inject('stores', 'actions') @observer class AuthLayoutContainer ); } + const { isLoggingOut } = user; + if (isLoggingOut) { + return ( + + + + ); + } + return (