summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings/user_settings_display.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-07-19 21:39:27 +0500
committerCorey Hulen <corey@hulen.com>2016-07-19 08:39:27 -0800
commitee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9 (patch)
tree1a2c95356c78052a12b8648572da0dbd3babd4c5 /webapp/components/user_settings/user_settings_display.jsx
parent3604f925a87dfd4558cef7c3950440cf57c44ffc (diff)
downloadchat-ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9.tar.gz
chat-ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9.tar.bz2
chat-ee1d189e5c4b76acbfd34a6f4d4d1bc5340db3b9.zip
PLT-3644 - Updating link previews behaviour (#3620)
Diffstat (limited to 'webapp/components/user_settings/user_settings_display.jsx')
-rw-r--r--webapp/components/user_settings/user_settings_display.jsx10
1 files changed, 5 insertions, 5 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}