mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
Move logic from view to controller
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user