Port ServerConfig changes
This commit is contained in:
parent
08b5888d03
commit
343de6245f
1 changed files with 10 additions and 8 deletions
|
@ -30,26 +30,28 @@ module.exports = {
|
||||||
return {
|
return {
|
||||||
onHsUrlChanged: function() {},
|
onHsUrlChanged: function() {},
|
||||||
onIsUrlChanged: function() {},
|
onIsUrlChanged: function() {},
|
||||||
default_hs_url: 'https://matrix.org/',
|
defaultHsUrl: 'https://matrix.org/',
|
||||||
default_is_url: 'https://matrix.org/'
|
defaultIsUrl: 'https://matrix.org/'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
hs_url: this.props.default_hs_url,
|
hs_url: this.props.defaultHsUrl,
|
||||||
is_url: this.props.default_is_url,
|
is_url: this.props.defaultIsUrl,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
hsChanged: function(ev) {
|
hsChanged: function(ev) {
|
||||||
this.setState({hs_url: ev.target.value});
|
this.setState({hs_url: ev.target.value}, function() {
|
||||||
this.props.onHsUrlChanged(this.state.hs_url);
|
this.props.onHsUrlChanged(this.state.hs_url);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
isChanged: function(ev) {
|
isChanged: function(ev) {
|
||||||
this.setState({is_url: ev.target.value});
|
this.setState({is_url: ev.target.value}, function() {
|
||||||
this.props.onIsUrlChanged(this.state.is_url);
|
this.props.onIsUrlChanged(this.state.is_url);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
getHsUrl: function() {
|
getHsUrl: function() {
|
||||||
|
|
Loading…
Reference in a new issue