From 1862057695fdc734d6b30c0af382d278a81f1c1c Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 18 Aug 2017 18:33:56 +0100 Subject: [PATCH] Only render appTile body (including warnings) if drawer shown. --- src/components/views/elements/AppTile.js | 62 ++++++++++++------------ 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index a411e1d6f6..a4d89df207 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -223,42 +223,44 @@ export default React.createClass({ safeWidgetUrl = url.format(parsedWidgetUrl); } - if (this.state.loading) { - appTileBody = ( -
- -
- ); - } else if (this.state.hasPermissionToLoad == true) { - if (this.isMixedContent()) { + if (this.props.show) { + if (this.state.loading) { + appTileBody = ( +
+ +
+ ); + } else if (this.state.hasPermissionToLoad == true) { + if (this.isMixedContent()) { + appTileBody = ( +
+ +
+ ); + } else { + appTileBody = ( +
+ +
+ ); + } + } else { appTileBody = (
-
); - } else if (this.props.show) { - appTileBody = ( -
- -
- ); } - } else { - appTileBody = ( -
- -
- ); } // editing is done in scalar