Disable RoomDetailList in GroupView when editing
Otherwise the rooms can be clicked on.
This commit is contained in:
parent
47bf991471
commit
80d4873542
2 changed files with 11 additions and 2 deletions
|
@ -673,6 +673,10 @@ export default React.createClass({
|
|||
{ _t('Add rooms to this community') }
|
||||
</div>
|
||||
</AccessibleButton>) : <div />;
|
||||
const roomDetailListClassName = classnames({
|
||||
"mx_fadable": true,
|
||||
"mx_fadable_faded": this.state.editing,
|
||||
});
|
||||
return <div className="mx_GroupView_rooms">
|
||||
<div className="mx_GroupView_rooms_header">
|
||||
<h3>{ _t('Rooms') }</h3>
|
||||
|
@ -680,7 +684,9 @@ export default React.createClass({
|
|||
</div>
|
||||
{ this.state.groupRoomsLoading ?
|
||||
<Spinner /> :
|
||||
<RoomDetailList rooms={this.state.groupRooms} />
|
||||
<RoomDetailList
|
||||
rooms={this.state.groupRooms}
|
||||
className={roomDetailListClassName} />
|
||||
}
|
||||
</div>;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue