diff options
author | 2018-02-26 16:43:57 +0100 | |
---|---|---|
committer | 2018-02-26 16:43:57 +0100 | |
commit | d1e6f03395b4d2b668a8da6260aca8adf823f1db (patch) | |
tree | 7153ce10c48f1ba6453999bca8e4ba8a8aa410eb /src/containers | |
parent | initial commit (diff) | |
download | ferdium-app-d1e6f03395b4d2b668a8da6260aca8adf823f1db.tar.gz ferdium-app-d1e6f03395b4d2b668a8da6260aca8adf823f1db.tar.zst ferdium-app-d1e6f03395b4d2b668a8da6260aca8adf823f1db.zip |
ADD `features` request
REFACTOR `defaults` -> `base`
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/layout/AppLayoutContainer.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/containers/layout/AppLayoutContainer.js b/src/containers/layout/AppLayoutContainer.js index e4a9d60c3..2db2b7bb7 100644 --- a/src/containers/layout/AppLayoutContainer.js +++ b/src/containers/layout/AppLayoutContainer.js | |||
@@ -26,6 +26,7 @@ export default class AppLayoutContainer extends Component { | |||
26 | render() { | 26 | render() { |
27 | const { | 27 | const { |
28 | app, | 28 | app, |
29 | features, | ||
29 | services, | 30 | services, |
30 | ui, | 31 | ui, |
31 | news, | 32 | news, |
@@ -64,10 +65,13 @@ export default class AppLayoutContainer extends Component { | |||
64 | 65 | ||
65 | const { children } = this.props; | 66 | const { children } = this.props; |
66 | 67 | ||
68 | const isLoadingFeatures = features.featuresRequest.isExecuting | ||
69 | && features.featuresRequest.isExecutingFirstTime; | ||
70 | |||
67 | const isLoadingServices = services.allServicesRequest.isExecuting | 71 | const isLoadingServices = services.allServicesRequest.isExecuting |
68 | && services.allServicesRequest.isExecutingFirstTime; | 72 | && services.allServicesRequest.isExecutingFirstTime; |
69 | 73 | ||
70 | if (isLoadingServices) { | 74 | if (isLoadingFeatures || isLoadingServices) { |
71 | return ( | 75 | return ( |
72 | <AppLoader /> | 76 | <AppLoader /> |
73 | ); | 77 | ); |