summaryrefslogtreecommitdiffstats
path: root/web/react/components/user_settings
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-02-22 10:54:42 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-02-22 10:54:42 -0500
commit32ae72d91d31699899d5e2084cf7faa40c81e42c (patch)
tree7e5e2f7ed7a1d2edca368ca91bd8416336a6cedf /web/react/components/user_settings
parent51680a7cd84661340cb727fea09b99d5350d9160 (diff)
parent4c92a1c1e35402730f74cf24a0c71729f4d0a676 (diff)
downloadchat-32ae72d91d31699899d5e2084cf7faa40c81e42c.tar.gz
chat-32ae72d91d31699899d5e2084cf7faa40c81e42c.tar.bz2
chat-32ae72d91d31699899d5e2084cf7faa40c81e42c.zip
Merge pull request #2208 from mattermost/client-upgrades
Updating some client deps + eslint
Diffstat (limited to 'web/react/components/user_settings')
-rw-r--r--web/react/components/user_settings/user_settings_integrations.jsx6
-rw-r--r--web/react/components/user_settings/user_settings_modal.jsx10
-rw-r--r--web/react/components/user_settings/user_settings_notifications.jsx4
3 files changed, 13 insertions, 7 deletions
diff --git a/web/react/components/user_settings/user_settings_integrations.jsx b/web/react/components/user_settings/user_settings_integrations.jsx
index 07d5230d1..e4f460a6d 100644
--- a/web/react/components/user_settings/user_settings_integrations.jsx
+++ b/web/react/components/user_settings/user_settings_integrations.jsx
@@ -57,7 +57,7 @@ class UserSettingsIntegrationsTab extends React.Component {
if (global.window.mm_config.EnableIncomingWebhooks === 'true') {
if (this.props.activeSection === 'incoming-hooks') {
inputs.push(
- <ManageIncomingHooks key='incoming-hook-ui' />
+ <ManageIncomingHooks key='incoming-hook-ui'/>
);
incomingHooksSection = (
@@ -88,7 +88,7 @@ class UserSettingsIntegrationsTab extends React.Component {
if (global.window.mm_config.EnableOutgoingWebhooks === 'true') {
if (this.props.activeSection === 'outgoing-hooks') {
inputs.push(
- <ManageOutgoingHooks key='outgoing-hook-ui' />
+ <ManageOutgoingHooks key='outgoing-hook-ui'/>
);
outgoingHooksSection = (
@@ -119,7 +119,7 @@ class UserSettingsIntegrationsTab extends React.Component {
if (global.window.mm_config.EnableCommands === 'true') {
if (this.props.activeSection === 'command-hooks') {
inputs.push(
- <ManageCommandHooks key='command-hook-ui' />
+ <ManageCommandHooks key='command-hook-ui'/>
);
commandHooksSection = (
diff --git a/web/react/components/user_settings/user_settings_modal.jsx b/web/react/components/user_settings/user_settings_modal.jsx
index 5442f7ac4..80d03d88e 100644
--- a/web/react/components/user_settings/user_settings_modal.jsx
+++ b/web/react/components/user_settings/user_settings_modal.jsx
@@ -111,12 +111,13 @@ class UserSettingsModal extends React.Component {
this.afterConfirm = () => this.handleHide();
this.showConfirmModal();
- return false;
+ return;
}
this.resetTheme();
this.deactivateTab();
this.props.onModalDismissed();
+ return;
}
// called after the dialog is fully hidden and faded out
@@ -295,7 +296,12 @@ class UserSettingsModal extends React.Component {
closeModal={this.closeModal}
collapseModal={this.collapseModal}
setEnforceFocus={(enforceFocus) => this.setState({enforceFocus})}
- setRequireConfirm={(requireConfirm) => this.requireConfirm = requireConfirm}
+ setRequireConfirm={
+ (requireConfirm) => {
+ this.requireConfirm = requireConfirm;
+ return;
+ }
+ }
/>
</div>
</div>
diff --git a/web/react/components/user_settings/user_settings_notifications.jsx b/web/react/components/user_settings/user_settings_notifications.jsx
index 786e53f10..ee9febb8e 100644
--- a/web/react/components/user_settings/user_settings_notifications.jsx
+++ b/web/react/components/user_settings/user_settings_notifications.jsx
@@ -445,7 +445,7 @@ class NotificationsTab extends React.Component {
title={formatMessage(holders.desktopSounds)}
describe={describe}
updateSection={handleUpdateSoundSection}
- disableOpen = {!this.state.soundNeeded}
+ disableOpen={!this.state.soundNeeded}
/>
);
}
@@ -826,4 +826,4 @@ NotificationsTab.propTypes = {
collapseModal: React.PropTypes.func.isRequired
};
-export default injectIntl(NotificationsTab); \ No newline at end of file
+export default injectIntl(NotificationsTab);