give Historical an emptyContent to make it look more consistent
and also to unbreak it since now !emptyContent get hidden Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
fabdf22aad
commit
9b50daa748
2 changed files with 15 additions and 2 deletions
|
@ -389,10 +389,16 @@ const RoomSubList = React.createClass({
|
|||
</Droppable> : subListContent;
|
||||
} else {
|
||||
const Loader = sdk.getComponent("elements.Spinner");
|
||||
if (this.props.showSpinner && !this.state.hidden) {
|
||||
content = <Loader />;
|
||||
} else if (this.state.hidden) {
|
||||
content = undefined;
|
||||
} // else show content calculated above
|
||||
|
||||
return (
|
||||
<div className="mx_RoomSubList">
|
||||
{this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined}
|
||||
{(this.props.showSpinner && !this.state.hidden) ? <Loader /> : undefined}
|
||||
{ content }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue