From 56581ef408574f7ae1883c4de0a565deb63fe00c Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 8 Nov 2017 20:38:31 +0000 Subject: [PATCH] Fix various loadingElement related issues. --- src/components/views/elements/AppTile.js | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index ddf0f0f6a8..cd1f351e19 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -312,24 +312,24 @@ export default React.createClass({ } if (this.props.show) { + const loadingElement = ( +
+ +
+ ); if (this.state.initialising) { - appTileBody = ( -
- -
- ); + appTileBody = loadingElement; } else if (this.state.hasPermissionToLoad == true) { - const loadingElement = ( -
- -
- ); if (this.isMixedContent()) { - appTileBody = loadingElement; + appTileBody = ( +
+ +
+ ); } else { appTileBody = ( -
- { this.loading && Element } +
+ { this.loading && loadingElement }