You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Only render appTile body (including warnings) if drawer shown.
This commit is contained in:
@@ -223,6 +223,7 @@ export default React.createClass({
|
||||
safeWidgetUrl = url.format(parsedWidgetUrl);
|
||||
}
|
||||
|
||||
if (this.props.show) {
|
||||
if (this.state.loading) {
|
||||
appTileBody = (
|
||||
<div className='mx_AppTileBody mx_AppLoading'>
|
||||
@@ -238,7 +239,7 @@ export default React.createClass({
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
} else if (this.props.show) {
|
||||
} else {
|
||||
appTileBody = (
|
||||
<div className="mx_AppTileBody">
|
||||
<iframe
|
||||
@@ -260,6 +261,7 @@ export default React.createClass({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// editing is done in scalar
|
||||
const showEditButton = Boolean(this._scalarClient && this._canUserModify());
|
||||
|
||||
Reference in New Issue
Block a user