put cancel & save buttons into the roomheader

This commit is contained in:
Matthew Hodgson 2015-08-12 01:30:23 +01:00
parent bf10a03ab1
commit 5153954a28
3 changed files with 10 additions and 7 deletions

View file

@ -64,6 +64,10 @@ module.exports = React.createClass({
);
},
onCancelClick: function() {
this.setState(this.getInitialState());
},
getUnreadMessagesString: function() {
if (!this.state.numUnreadMessages) {
return "";
@ -163,7 +167,7 @@ module.exports = React.createClass({
return (
<div className="mx_RoomView">
<RoomHeader ref="header" room={this.state.room} editing={this.state.editingRoomSettings}
onSettingsClick={this.onSettingsClick}/>
onSettingsClick={this.onSettingsClick} onSaveClick={this.onSaveClick} onCancelClick={this.onCancelClick} />
<div className="mx_RoomView_auxPanel">
<CallView room={this.state.room}/>
{ roomEdit }