Other empty sections no longer need to be greyed

This commit is contained in:
David Baker 2017-04-28 11:20:29 +01:00
parent f5f35e3294
commit 083d5bf463

View file

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