mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Move all element specific code into skins/
This commit is contained in:
parent
b53e710d20
commit
a748c090fb
@ -24,6 +24,10 @@ module.exports = React.createClass({
|
||||
displayName: 'CreateRoomPresets',
|
||||
mixins: [PresetsController],
|
||||
|
||||
onValueChanged: function(ev) {
|
||||
this.setState({preset: ev.target.value})
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return (
|
||||
<select className="mx_PresetOption" onChange={this.onValueChanged} defaultValue={this.state.preset}>
|
||||
|
@ -24,6 +24,10 @@ module.exports = React.createClass({
|
||||
displayName: 'CreateRoomButton',
|
||||
mixins: [RoomNameTextboxController],
|
||||
|
||||
onValueChanged: function(ev) {
|
||||
this.setState({room_name: ev.target.value})
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return (
|
||||
<input type="text" className="mx_RoomNameTextbox" placeholder="ex. MyNewRoom" onChange={this.onValueChanged}/>
|
||||
|
@ -23,10 +23,6 @@ module.exports = {
|
||||
default_preset: React.PropTypes.string
|
||||
},
|
||||
|
||||
onValueChanged: function(ev) {
|
||||
this.setState({preset: ev.target.value})
|
||||
},
|
||||
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
default_preset: 'private_chat',
|
||||
|
@ -23,10 +23,6 @@ module.exports = {
|
||||
default_name: React.PropTypes.string
|
||||
},
|
||||
|
||||
onValueChanged: function(ev) {
|
||||
this.setState({room_name: ev.target.value})
|
||||
},
|
||||
|
||||
getDefaultProps: function() {
|
||||
return {
|
||||
default_name: '',
|
||||
|
Loading…
Reference in New Issue
Block a user