summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-14 08:27:34 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-14 08:27:34 -0400
commitcdbe6342bb018e16d6eb3f04c0c6c8457805e61a (patch)
treece22f6283ab9e59cc6d14573eae547f38b009ad0 /web/react/components/user_settings
parentcbefd8895107c3f168c97c5676ad0b19c0254d10 (diff)
parent4ad9e0673ca8950597a290f10db10475b18b67cc (diff)
downloadchat-cdbe6342bb018e16d6eb3f04c0c6c8457805e61a.tar.gz
chat-cdbe6342bb018e16d6eb3f04c0c6c8457805e61a.tar.bz2
chat-cdbe6342bb018e16d6eb3f04c0c6c8457805e61a.zip
Merge release branch 'release-1.1.0'
Diffstat (limited to 'web/react/components/user_settings')
-rw-r--r--web/react/components/user_settings/manage_incoming_hooks.jsx3
-rw-r--r--web/react/components/user_settings/user_settings_general.jsx20
2 files changed, 12 insertions, 11 deletions
diff --git a/web/react/components/user_settings/manage_incoming_hooks.jsx b/web/react/components/user_settings/manage_incoming_hooks.jsx
index 8817e0d39..f5a2774a0 100644
--- a/web/react/components/user_settings/manage_incoming_hooks.jsx
+++ b/web/react/components/user_settings/manage_incoming_hooks.jsx
@@ -148,7 +148,8 @@ export default class ManageIncomingHooks extends React.Component {
return (
<div key='addIncomingHook'>
- {'For developers building integrations this page lets you create webhook URLs for channels and private groups. Please see http://mattermost.org/webhooks to learn about creating webhooks, view samples, and to let the community know about integrations you have built. The URLs created below can be used by outside applications to create posts in any channels or private groups you have access to. The specified channel will be used as the default.'}
+ {'Create webhook URLs for use in external integrations. Please see '}<a href='http://mattermost.org/webhooks'>{'http://mattermost.org/webhooks'}</a> {' to learn more.'}
+ <br/>
<br/>
<label className='control-label'>{'Add a new incoming webhook'}</label>
<div className='padding-top'>
diff --git a/web/react/components/user_settings/user_settings_general.jsx b/web/react/components/user_settings/user_settings_general.jsx
index 66d83725c..0e872315d 100644
--- a/web/react/components/user_settings/user_settings_general.jsx
+++ b/web/react/components/user_settings/user_settings_general.jsx
@@ -59,7 +59,7 @@ export default class UserSettingsGeneralTab extends React.Component {
user.username = username;
- this.submitUser(user);
+ this.submitUser(user, false);
}
submitNickname(e) {
e.preventDefault();
@@ -74,7 +74,7 @@ export default class UserSettingsGeneralTab extends React.Component {
user.nickname = nickname;
- this.submitUser(user);
+ this.submitUser(user, false);
}
submitName(e) {
e.preventDefault();
@@ -91,7 +91,7 @@ export default class UserSettingsGeneralTab extends React.Component {
user.first_name = firstName;
user.last_name = lastName;
- this.submitUser(user);
+ this.submitUser(user, false);
}
submitEmail(e) {
e.preventDefault();
@@ -115,22 +115,22 @@ export default class UserSettingsGeneralTab extends React.Component {
}
user.email = email;
- this.submitUser(user);
+ this.submitUser(user, true);
}
- submitUser(user) {
+ submitUser(user, emailUpdated) {
client.updateUser(user,
- function updateSuccess() {
+ () => {
this.updateSection('');
AsyncClient.getMe();
- const verificationEnabled = global.window.config.SendEmailNotifications === 'true' && global.window.config.RequireEmailVerification === 'true';
+ const verificationEnabled = global.window.config.SendEmailNotifications === 'true' && global.window.config.RequireEmailVerification === 'true' && emailUpdated;
if (verificationEnabled) {
ErrorStore.storeLastError({message: 'Check your email at ' + user.email + ' to verify the address.'});
ErrorStore.emitChange();
this.setState({emailChangeInProgress: true});
}
- }.bind(this),
- function updateFailure(err) {
+ },
+ (err) => {
var state = this.setupInitialState(this.props);
if (err.message) {
state.serverError = err.message;
@@ -138,7 +138,7 @@ export default class UserSettingsGeneralTab extends React.Component {
state.serverError = err;
}
this.setState(state);
- }.bind(this)
+ }
);
}
submitPicture(e) {