mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 09:15:41 +03:00
Revert commits acciderntally put on develop
This commit is contained in:
parent
73fb2c859e
commit
4eb0ca63a9
2 changed files with 6 additions and 26 deletions
|
@ -82,7 +82,6 @@ var RoomSubList = React.createClass({
|
||||||
incomingCall: React.PropTypes.object,
|
incomingCall: React.PropTypes.object,
|
||||||
onShowMoreRooms: React.PropTypes.func,
|
onShowMoreRooms: React.PropTypes.func,
|
||||||
searchFilter: React.PropTypes.string,
|
searchFilter: React.PropTypes.string,
|
||||||
emptyContent: React.PropTypes.node, // content shown if the list is empty
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
|
@ -469,18 +468,16 @@ var RoomSubList = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var connectDropTarget = this.props.connectDropTarget;
|
var connectDropTarget = this.props.connectDropTarget;
|
||||||
|
var RoomDropTarget = sdk.getComponent('rooms.RoomDropTarget');
|
||||||
var TruncatedList = sdk.getComponent('elements.TruncatedList');
|
var TruncatedList = sdk.getComponent('elements.TruncatedList');
|
||||||
|
|
||||||
var label = this.props.collapsed ? null : this.props.label;
|
var label = this.props.collapsed ? null : this.props.label;
|
||||||
|
|
||||||
//console.log("render: " + JSON.stringify(this.state.sortedList));
|
//console.log("render: " + JSON.stringify(this.state.sortedList));
|
||||||
|
|
||||||
let content;
|
var target;
|
||||||
if (this.state.sortedList.length == 0) {
|
if (this.state.sortedList.length == 0 && this.props.editable) {
|
||||||
//content = <RoomDropTarget label={ 'Drop here to ' + this.props.verb }/>;
|
target = <RoomDropTarget label={ 'Drop here to ' + this.props.verb }/>;
|
||||||
content = this.props.emptyContent;
|
|
||||||
} else {
|
|
||||||
content = this.makeRoomTiles();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var roomCount = this.props.list.length > 0 ? this.props.list.length : '';
|
var roomCount = this.props.list.length > 0 ? this.props.list.length : '';
|
||||||
|
@ -500,7 +497,8 @@ var RoomSubList = React.createClass({
|
||||||
if (!this.state.hidden) {
|
if (!this.state.hidden) {
|
||||||
subList = <TruncatedList className={ classes } truncateAt={this.state.truncateAt}
|
subList = <TruncatedList className={ classes } truncateAt={this.state.truncateAt}
|
||||||
createOverflowElement={this._createOverflowTile} >
|
createOverflowElement={this._createOverflowTile} >
|
||||||
{ content }
|
{ target }
|
||||||
|
{ this.makeRoomTiles() }
|
||||||
</TruncatedList>;
|
</TruncatedList>;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2015, 2016 OpenMarket Ltd
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
Copyright 2107 Vector Creations Ltd
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -38,20 +37,3 @@ limitations under the License.
|
||||||
.mx_RoomList_scrollbar .gm-scrollbar.-vertical {
|
.mx_RoomList_scrollbar .gm-scrollbar.-vertical {
|
||||||
z-index: 6;
|
z-index: 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomList_emptySubListTip {
|
|
||||||
font-size: 13px;
|
|
||||||
margin-left: 18px;
|
|
||||||
margin-right: 18px;
|
|
||||||
margin-top: 8px;
|
|
||||||
margin-bottom: 7px;
|
|
||||||
padding: 5px;
|
|
||||||
border: 1px solid $accent-color;
|
|
||||||
color: $primary-fg-color;
|
|
||||||
background-color: $droptarget-bg-color;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_RoomList_butonPreview {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue