@@ -24,6 +24,7 @@ import { state as delayAppState } from '../../features/delayApp';
2424import { workspaceActions } from '../../features/workspaces/actions' ;
2525import WorkspaceDrawer from '../../features/workspaces/components/WorkspaceDrawer' ;
2626import { workspaceStore } from '../../features/workspaces' ;
27+ import WorkspacesStore from '../../features/workspaces/store' ;
2728
2829export default @inject ( 'stores' , 'actions' ) @observer class AppLayoutContainer extends Component {
2930 static defaultProps = {
@@ -41,6 +42,7 @@ export default @inject('stores', 'actions') @observer class AppLayoutContainer e
4142 globalError,
4243 requests,
4344 user,
45+ workspaces,
4446 } = this . props . stores ;
4547
4648 const {
@@ -79,7 +81,7 @@ export default @inject('stores', 'actions') @observer class AppLayoutContainer e
7981 const isLoadingServices = services . allServicesRequest . isExecuting
8082 && services . allServicesRequest . isExecutingFirstTime ;
8183
82- if ( isLoadingFeatures || isLoadingServices ) {
84+ if ( isLoadingFeatures || isLoadingServices || workspaces . isLoadingWorkspaces ) {
8385 return (
8486 < ThemeProvider theme = { ui . theme } >
8587 < AppLoader />
@@ -174,6 +176,7 @@ AppLayoutContainer.wrappedComponent.propTypes = {
174176 user : PropTypes . instanceOf ( UserStore ) . isRequired ,
175177 requests : PropTypes . instanceOf ( RequestStore ) . isRequired ,
176178 globalError : PropTypes . instanceOf ( GlobalErrorStore ) . isRequired ,
179+ workspaces : PropTypes . instanceOf ( WorkspacesStore ) . isRequired ,
177180 } ) . isRequired ,
178181 actions : PropTypes . shape ( {
179182 service : PropTypes . shape ( {
0 commit comments