mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Room directory: indicate when there are no results
Fixes https://github.com/vector-im/vector-web/issues/2250
This commit is contained in:
@@ -413,6 +413,10 @@ module.exports = React.createClass({
|
|||||||
content = <div className="mx_RoomDirectory">
|
content = <div className="mx_RoomDirectory">
|
||||||
<Loader />
|
<Loader />
|
||||||
</div>;
|
</div>;
|
||||||
|
} else {
|
||||||
|
const rows = this.getRows();
|
||||||
|
if (rows.length == 0) {
|
||||||
|
content = <i>No rooms to show</i>;
|
||||||
} else {
|
} else {
|
||||||
const ScrollPanel = sdk.getComponent("structures.ScrollPanel");
|
const ScrollPanel = sdk.getComponent("structures.ScrollPanel");
|
||||||
content = <ScrollPanel ref={this.collectScrollPanel}
|
content = <ScrollPanel ref={this.collectScrollPanel}
|
||||||
@@ -429,6 +433,7 @@ module.exports = React.createClass({
|
|||||||
</table>
|
</table>
|
||||||
</ScrollPanel>;
|
</ScrollPanel>;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader');
|
const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader');
|
||||||
const NetworkDropdown = sdk.getComponent('directory.NetworkDropdown');
|
const NetworkDropdown = sdk.getComponent('directory.NetworkDropdown');
|
||||||
|
|||||||
Reference in New Issue
Block a user