Move logic from view to controller
This commit is contained in:
parent
16846c36fd
commit
c5d84562ba
3 changed files with 98 additions and 85 deletions
|
@ -72,7 +72,7 @@ module.exports = React.createClass({
|
|||
var actual_name = this.props.room.currentState.getStateEvents('m.room.name', '');
|
||||
if (actual_name) actual_name = actual_name.getContent().name;
|
||||
if (this.props.editing) {
|
||||
name = <input type="text" defaultValue={actual_name} placeHolder="Name" ref="name_edit"/>;
|
||||
name = <input type="text" defaultValue={actual_name} placeholder="Name" ref="name_edit"/>;
|
||||
// if (topic) topic_el = <div className="mx_RoomHeader_topic"><textarea>{ topic.getContent().topic }</textarea></div>
|
||||
save_button = (
|
||||
<div className="mx_RoomHeader_button"onClick={this.props.onSaveClick}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue