From 57419a7f8d485c621b6de0a85467a499874c3c45 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 15 Feb 2018 14:11:45 +0000 Subject: [PATCH] Give emptySubListTip a container for correct bg colour --- src/components/views/rooms/RoomList.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 4a491c8a03..e53b7b6536 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -544,17 +544,20 @@ module.exports = React.createClass({ const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton'); const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton'); + let tip = null; + switch (section) { case 'im.vector.fake.direct': - return
+ tip =
{ _t( "Press to start a chat with someone", {}, { 'StartChatButton': }, ) }
; + break; case 'im.vector.fake.recent': - return
+ tip =
{ _t( "You're not in any rooms yet! Press to make a room or"+ " to browse the directory", @@ -565,6 +568,13 @@ module.exports = React.createClass({ }, ) }
; + break; + } + + if (tip) { + return
+ { tip } +
; } // We don't want to display drop targets if there are no room tiles to drag'n'drop