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