mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 15:01:13 +02:00
Merge pull request #967 from matrix-org/luke/show-people-rooms-tooltips
Show People/Rooms emptySubListTip even when total rooms !== 0
This commit is contained in:
commit
be7c2612e8
@ -510,7 +510,7 @@ module.exports = React.createClass({
|
|||||||
const StartChatButton = sdk.getComponent('elements.StartChatButton');
|
const StartChatButton = sdk.getComponent('elements.StartChatButton');
|
||||||
const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton');
|
const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton');
|
||||||
const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton');
|
const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton');
|
||||||
if (this.state.totalRoomCount === 0) {
|
|
||||||
const TintableSvg = sdk.getComponent('elements.TintableSvg');
|
const TintableSvg = sdk.getComponent('elements.TintableSvg');
|
||||||
switch (section) {
|
switch (section) {
|
||||||
case 'im.vector.fake.direct':
|
case 'im.vector.fake.direct':
|
||||||
@ -528,8 +528,8 @@ module.exports = React.createClass({
|
|||||||
to browse the directory
|
to browse the directory
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
// We don't want to display drop targets if there are no room tiles to drag'n'drop
|
||||||
if (this.state.totalRoomCount === 0) {
|
if (this.state.totalRoomCount === 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user