Skip to content
Snippets Groups Projects
Commit 5d490841 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

Review comments

parent 5286ec17
Branches
Tags
No related merge requests found
......@@ -19,6 +19,10 @@ limitations under the License.
var MatrixClientPeg = require("./MatrixClientPeg");
var Notifier = require("./Notifier");
/*
* TODO: Make things use this. This is all WIP - see UserSettings.js for usage.
*/
module.exports = {
loadProfileInfo: function() {
......@@ -35,7 +39,7 @@ module.exports = {
},
saveThreePids: function(threePids) {
// TODO
},
getEnableNotifications: function() {
......
......@@ -58,8 +58,7 @@ module.exports = React.createClass({
getInitialState: function() {
return {
phase: this.Phases.Edit,
errorString: ''
phase: this.Phases.Edit
}
},
......@@ -73,8 +72,7 @@ module.exports = React.createClass({
};
this.setState({
phase: this.Phases.Uploading,
errorString: '',
phase: this.Phases.Uploading
});
var self = this;
......@@ -84,8 +82,7 @@ module.exports = React.createClass({
self.props.onError(err);
}).finally(function() {
self.setState({
phase: self.Phases.Edit,
errorString: ""
phase: self.Phases.Edit
});
}).done();
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment