mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 10:21:44 +02:00
Don't show "Drop to ..." if total rooms = 0
This commit is contained in:
parent
3185d3ed41
commit
7900bf1c7d
@ -540,6 +540,10 @@ module.exports = React.createClass({
|
||||
}
|
||||
}
|
||||
|
||||
if (this.state.totalRoomCount === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const labelText = 'Drop here to ' + (VERBS[section] || 'tag ' + section);
|
||||
|
||||
return <RoomDropTarget label={labelText} />;
|
||||
|
Loading…
x
Reference in New Issue
Block a user