diff options
author | Asaad Mahmood <asaadmahmoodspin@users.noreply.github.com> | 2016-07-19 21:39:27 +0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-07-19 08:39:27 -0800 |
commit | ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9 (patch) | |
tree | 1a2c95356c78052a12b8648572da0dbd3babd4c5 /webapp | |
parent | 3604f925a87dfd4558cef7c3950440cf57c44ffc (diff) | |
download | chat-ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9.tar.gz chat-ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9.tar.bz2 chat-ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9.zip |
PLT-3644 - Updating link previews behaviour (#3620)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/user_settings/user_settings_display.jsx | 10 | ||||
-rw-r--r-- | webapp/utils/constants.jsx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/webapp/components/user_settings/user_settings_display.jsx b/webapp/components/user_settings/user_settings_display.jsx index 78a499b51..ee360d736 100644 --- a/webapp/components/user_settings/user_settings_display.jsx +++ b/webapp/components/user_settings/user_settings_display.jsx @@ -142,7 +142,7 @@ export default class UserSettingsDisplay extends React.Component { createCollapseSection() { if (this.props.activeSection === 'collapse') { const collapseFormat = [false, false]; - if (this.state.collapseDisplay === 'true') { + if (this.state.collapseDisplay === 'false') { collapseFormat[0] = true; } else { collapseFormat[1] = true; @@ -161,7 +161,7 @@ export default class UserSettingsDisplay extends React.Component { type='radio' name='collapseFormat' checked={collapseFormat[0]} - onChange={this.handleCollapseRadio.bind(this, 'true')} + onChange={this.handleCollapseRadio.bind(this, 'false')} /> <FormattedMessage id='user.settings.display.collapseOn' @@ -176,7 +176,7 @@ export default class UserSettingsDisplay extends React.Component { type='radio' name='collapseFormat' checked={collapseFormat[1]} - onChange={this.handleCollapseRadio.bind(this, 'false')} + onChange={this.handleCollapseRadio.bind(this, 'true')} /> <FormattedMessage id='user.settings.display.collapseOff' @@ -212,7 +212,7 @@ export default class UserSettingsDisplay extends React.Component { } let describe; - if (this.state.collapseDisplay === 'true') { + if (this.state.collapseDisplay === 'false') { describe = ( <FormattedMessage id='user.settings.display.collapseOn' @@ -237,7 +237,7 @@ export default class UserSettingsDisplay extends React.Component { title={ <FormattedMessage id='user.settings.display.collapseDisplay' - defaultMessage='Auto Collapse Previews' + defaultMessage='Link previews' /> } describe={describe} diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index 3dd507540..f0b3f30c9 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -43,7 +43,7 @@ export const Preferences = { CHANNEL_DISPLAY_MODE: 'channel_display_mode', CHANNEL_DISPLAY_MODE_CENTERED: 'centered', CHANNEL_DISPLAY_MODE_FULL_SCREEN: 'full', - CHANNEL_DISPLAY_MODE_DEFAULT: 'centered', + CHANNEL_DISPLAY_MODE_DEFAULT: 'full', MESSAGE_DISPLAY: 'message_display', MESSAGE_DISPLAY_CLEAN: 'clean', MESSAGE_DISPLAY_COMPACT: 'compact', |