summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings/user_settings_general.jsx
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2016-11-17 15:25:11 +0100
committerenahum <nahumhbl@gmail.com>2016-11-17 11:25:11 -0300
commit091e5b8e03d6e0f107a0f70e1d918b753c52ae20 (patch)
treee82e3669ffc37f3d53905669a8125144bbcd9c9f /webapp/components/user_settings/user_settings_general.jsx
parentbe74ec22414a9a34f458a0fb30ea14e2d02dcd3f (diff)
downloadchat-091e5b8e03d6e0f107a0f70e1d918b753c52ae20.tar.gz
chat-091e5b8e03d6e0f107a0f70e1d918b753c52ae20.tar.bz2
chat-091e5b8e03d6e0f107a0f70e1d918b753c52ae20.zip
PLT-4572 - Move instances of Client.updateUser() in components to an action (#4571)
* Move instances of Client.updateUser() in components to an action
Diffstat (limited to 'webapp/components/user_settings/user_settings_general.jsx')
-rw-r--r--webapp/components/user_settings/user_settings_general.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/user_settings/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general.jsx
index e794c4d4b..b99ddd16e 100644
--- a/webapp/components/user_settings/user_settings_general.jsx
+++ b/webapp/components/user_settings/user_settings_general.jsx
@@ -15,6 +15,7 @@ import * as AsyncClient from 'utils/async_client.jsx';
import * as Utils from 'utils/utils.jsx';
import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage, FormattedDate} from 'react-intl';
+import {updateUser} from 'actions/user_actions.jsx';
const holders = defineMessages({
usernameReserved: {
@@ -187,7 +188,7 @@ class UserSettingsGeneralTab extends React.Component {
}
submitUser(user, type, emailUpdated) {
- Client.updateUser(user, type,
+ updateUser(user, type,
() => {
this.updateSection('');
AsyncClient.getMe();