mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
remove alwaysShowHeader, as now onAddRoom prop determines this
This commit is contained in:
parent
5091aa3b43
commit
d48f19bc19
2 changed files with 1 additions and 4 deletions
|
@ -50,7 +50,6 @@ const RoomSubList = React.createClass({
|
||||||
showSpinner: PropTypes.bool, // true to show a spinner if 0 elements when expanded
|
showSpinner: PropTypes.bool, // true to show a spinner if 0 elements when expanded
|
||||||
collapsed: PropTypes.bool.isRequired, // is LeftPanel collapsed?
|
collapsed: PropTypes.bool.isRequired, // is LeftPanel collapsed?
|
||||||
onHeaderClick: PropTypes.func,
|
onHeaderClick: PropTypes.func,
|
||||||
alwaysShowHeader: PropTypes.bool,
|
|
||||||
incomingCall: PropTypes.object,
|
incomingCall: PropTypes.object,
|
||||||
searchFilter: PropTypes.string,
|
searchFilter: PropTypes.string,
|
||||||
headerItems: PropTypes.node, // content shown in the sublist header
|
headerItems: PropTypes.node, // content shown in the sublist header
|
||||||
|
@ -371,7 +370,7 @@ const RoomSubList = React.createClass({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomSubList">
|
<div className="mx_RoomSubList">
|
||||||
{this.props.alwaysShowHeader ? this._getHeaderJsx() : undefined}
|
{ this._getHeaderJsx() }
|
||||||
{ content }
|
{ content }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -501,7 +501,6 @@ module.exports = React.createClass({
|
||||||
tagName: "im.vector.fake.direct",
|
tagName: "im.vector.fake.direct",
|
||||||
headerItems: this._getHeaderItems('im.vector.fake.direct'),
|
headerItems: this._getHeaderItems('im.vector.fake.direct'),
|
||||||
order: "recent",
|
order: "recent",
|
||||||
alwaysShowHeader: true,
|
|
||||||
onAddRoom: () => {dis.dispatch({action: 'view_create_chat'})},
|
onAddRoom: () => {dis.dispatch({action: 'view_create_chat'})},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -536,7 +535,6 @@ module.exports = React.createClass({
|
||||||
list: self.state.lists['im.vector.fake.archived'],
|
list: self.state.lists['im.vector.fake.archived'],
|
||||||
label: _t('Historical'),
|
label: _t('Historical'),
|
||||||
order: "recent",
|
order: "recent",
|
||||||
alwaysShowHeader: true,
|
|
||||||
startAsHidden: true,
|
startAsHidden: true,
|
||||||
showSpinner: self.state.isLoadingLeftRooms,
|
showSpinner: self.state.isLoadingLeftRooms,
|
||||||
onHeaderClick: self.onArchivedHeaderClick,
|
onHeaderClick: self.onArchivedHeaderClick,
|
||||||
|
|
Loading…
Reference in a new issue