Other empty sections no longer need to be greyed

pull/21833/head
David Baker 2017-04-28 11:20:29 +01:00 committed by Luke Barnard
parent 5531f27435
commit d6d9a89453
1 changed files with 1 additions and 12 deletions

View File

@ -510,14 +510,9 @@ module.exports = React.createClass({
}, },
_getEmptyContent: function(section) { _getEmptyContent: function(section) {
let greyed = false;
if (this.state.totalRoomCount === 0) { if (this.state.totalRoomCount === 0) {
const TintableSvg = sdk.getComponent('elements.TintableSvg'); const TintableSvg = sdk.getComponent('elements.TintableSvg');
switch (section) { switch (section) {
case 'm.favourite':
case 'm.lowpriority':
greyed = true;
break;
case 'im.vector.fake.direct': case 'im.vector.fake.direct':
return <div className="mx_RoomList_emptySubListTip"> return <div className="mx_RoomList_emptySubListTip">
<div className="mx_RoomList_butonPreview"> <div className="mx_RoomList_butonPreview">
@ -543,13 +538,7 @@ module.exports = React.createClass({
const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section); const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section);
let label; return <RoomDropTarget label={labelText} />;
if (greyed) {
label = <span className="mx_RoomList_greyedSubListLabel">{labelText}</span>;
} else {
label = labelText;
}
return <RoomDropTarget label={label} />;
}, },
render: function() { render: function() {