aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/AuthLayoutContainer.js
diff options
context:
space:
mode:
authorLibravatar haraldox <hnaumann+github@gmail.com>2018-02-28 14:46:04 +0100
committerLibravatar haraldox <hnaumann+github@gmail.com>2018-02-28 14:46:04 +0100
commitf3a135c28fe93c685159d4cea197f61c2456ada3 (patch)
tree95ecb2076c28b85925f4362782422f2abd3cacdb /src/containers/auth/AuthLayoutContainer.js
parentMerge branch 'feature/features-api' into feature/enterprise-ui (diff)
downloadferdium-app-f3a135c28fe93c685159d4cea197f61c2456ada3.tar.gz
ferdium-app-f3a135c28fe93c685159d4cea197f61c2456ada3.tar.zst
ferdium-app-f3a135c28fe93c685159d4cea197f61c2456ada3.zip
ADD features loading spinner
Diffstat (limited to 'src/containers/auth/AuthLayoutContainer.js')
-rw-r--r--src/containers/auth/AuthLayoutContainer.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/containers/auth/AuthLayoutContainer.js b/src/containers/auth/AuthLayoutContainer.js
index 004054fdd..f362b1800 100644
--- a/src/containers/auth/AuthLayoutContainer.js
+++ b/src/containers/auth/AuthLayoutContainer.js
@@ -5,6 +5,7 @@ import { inject, observer } from 'mobx-react';
5import AuthLayout from '../../components/auth/AuthLayout'; 5import AuthLayout from '../../components/auth/AuthLayout';
6import AppStore from '../../stores/AppStore'; 6import AppStore from '../../stores/AppStore';
7import GlobalErrorStore from '../../stores/GlobalErrorStore'; 7import GlobalErrorStore from '../../stores/GlobalErrorStore';
8import AppLoader from '../../components/ui/AppLoader';
8 9
9import { oneOrManyChildElements } from '../../prop-types'; 10import { oneOrManyChildElements } from '../../prop-types';
10 11
@@ -19,6 +20,17 @@ export default class AuthLayoutContainer extends Component {
19 20
20 render() { 21 render() {
21 const { stores, actions, children, location } = this.props; 22 const { stores, actions, children, location } = this.props;
23 const { features } = stores;
24
25 const isLoadingBaseFeatures = features.baseFeaturesRequest.isExecuting
26 && !features.baseFeaturesRequest.wasExecuted;
27
28 if (isLoadingBaseFeatures) {
29 return (
30 <AppLoader />
31 );
32 }
33
22 return ( 34 return (
23 <AuthLayout 35 <AuthLayout
24 error={stores.globalError.response} 36 error={stores.globalError.response}