diff options
author | 2018-02-28 14:46:04 +0100 | |
---|---|---|
committer | 2018-02-28 14:46:04 +0100 | |
commit | f3a135c28fe93c685159d4cea197f61c2456ada3 (patch) | |
tree | 95ecb2076c28b85925f4362782422f2abd3cacdb | |
parent | Merge branch 'feature/features-api' into feature/enterprise-ui (diff) | |
download | ferdium-app-f3a135c28fe93c685159d4cea197f61c2456ada3.tar.gz ferdium-app-f3a135c28fe93c685159d4cea197f61c2456ada3.tar.zst ferdium-app-f3a135c28fe93c685159d4cea197f61c2456ada3.zip |
ADD features loading spinner
-rw-r--r-- | src/containers/auth/AuthLayoutContainer.js | 12 |
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'; | |||
5 | import AuthLayout from '../../components/auth/AuthLayout'; | 5 | import AuthLayout from '../../components/auth/AuthLayout'; |
6 | import AppStore from '../../stores/AppStore'; | 6 | import AppStore from '../../stores/AppStore'; |
7 | import GlobalErrorStore from '../../stores/GlobalErrorStore'; | 7 | import GlobalErrorStore from '../../stores/GlobalErrorStore'; |
8 | import AppLoader from '../../components/ui/AppLoader'; | ||
8 | 9 | ||
9 | import { oneOrManyChildElements } from '../../prop-types'; | 10 | import { 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} |