diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-06-07 08:20:58 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-06-07 08:20:58 -0400 |
commit | d9e8eb619ad819ecf2034ba0218a8477ddc262be (patch) | |
tree | 8244fd9f47282a5d2270d6de81df0047afbe73bb /webapp/components/user_settings/user_settings_display.jsx | |
parent | 22245eee7099c4c33dd25f20f851d15ab983d00a (diff) | |
download | chat-d9e8eb619ad819ecf2034ba0218a8477ddc262be.tar.gz chat-d9e8eb619ad819ecf2034ba0218a8477ddc262be.tar.bz2 chat-d9e8eb619ad819ecf2034ba0218a8477ddc262be.zip |
Removed deactivate method from User Settings tabs (#3271)
Diffstat (limited to 'webapp/components/user_settings/user_settings_display.jsx')
-rw-r--r-- | webapp/components/user_settings/user_settings_display.jsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/webapp/components/user_settings/user_settings_display.jsx b/webapp/components/user_settings/user_settings_display.jsx index f7a030e52..1b6ce3343 100644 --- a/webapp/components/user_settings/user_settings_display.jsx +++ b/webapp/components/user_settings/user_settings_display.jsx @@ -41,12 +41,15 @@ export default class UserSettingsDisplay extends React.Component { this.handleFont = this.handleFont.bind(this); this.updateSection = this.updateSection.bind(this); this.updateState = this.updateState.bind(this); - this.deactivate = this.deactivate.bind(this); this.createCollapseSection = this.createCollapseSection.bind(this); this.state = getDisplayStateFromStores(); } + componentWillUnmount() { + Utils.applyFont(PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'selected_font', Constants.DEFAULT_FONT)); + } + handleSubmit() { const userId = UserStore.getCurrentId(); @@ -136,10 +139,6 @@ export default class UserSettingsDisplay extends React.Component { } } - deactivate() { - this.updateState(); - } - createCollapseSection() { if (this.props.activeSection === 'collapse') { const collapseFormat = [false, false]; |