mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #2380 from vector-im/dbkr/roomdir_no_results
Room directory: indicate when there are no results
This commit is contained in:
commit
8e0be29c13
@ -413,6 +413,10 @@ module.exports = React.createClass({
|
||||
content = <div className="mx_RoomDirectory">
|
||||
<Loader />
|
||||
</div>;
|
||||
} else {
|
||||
const rows = this.getRows();
|
||||
if (rows.length == 0) {
|
||||
content = <i>No rooms to show</i>;
|
||||
} else {
|
||||
const ScrollPanel = sdk.getComponent("structures.ScrollPanel");
|
||||
content = <ScrollPanel ref={this.collectScrollPanel}
|
||||
@ -429,6 +433,7 @@ module.exports = React.createClass({
|
||||
</table>
|
||||
</ScrollPanel>;
|
||||
}
|
||||
}
|
||||
|
||||
const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader');
|
||||
const NetworkDropdown = sdk.getComponent('directory.NetworkDropdown');
|
||||
|
Loading…
Reference in New Issue
Block a user