store the custom HS/IS URL in local storage, add some review commentary

This commit is contained in:
Matthew Hodgson
2015-11-10 19:10:30 +00:00
parent 02ad2b5152
commit 5fea3c2673
3 changed files with 24 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ module.exports = {
});
},
// XXX: horrible naming due to potential confusion between the word 'is' and the acronym 'IS'
isChanged: function(ev) {
this.setState({is_url: ev.target.value}, function() {
this.props.onIsUrlChanged(this.state.is_url);

View File

@@ -35,6 +35,7 @@ module.exports = {
onHSChosen: function() {
MatrixClientPeg.replaceUsingUrls(
// XXX: why is the controller invoking methods from the view? :( -matthew
this.getHsUrl(),
this.getIsUrl()
);