From 4c1eb7ff5575be07b8410e76da4cdaa964c2ef91 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 24 Mar 2017 05:17:01 -0400 Subject: Update default town square purpose (#5810) --- webapp/components/channel_info_modal.jsx | 19 ++++++++++++++++--- webapp/i18n/en.json | 3 ++- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'webapp') diff --git a/webapp/components/channel_info_modal.jsx b/webapp/components/channel_info_modal.jsx index fce4b75db..4829d1dd9 100644 --- a/webapp/components/channel_info_modal.jsx +++ b/webapp/components/channel_info_modal.jsx @@ -2,6 +2,7 @@ // See License.txt for license information. import * as Utils from 'utils/utils.jsx'; +import Constants from 'utils/constants.jsx'; import {FormattedMessage} from 'react-intl'; import {Modal} from 'react-bootstrap'; @@ -47,9 +48,21 @@ export default class ChannelInfoModal extends React.Component { const channelURL = TeamStore.getCurrentTeamUrl() + '/channels/' + channel.name; - let channelPurpose = null; + let channelPurpose; if (channel.purpose) { + channelPurpose = channel.purpose; + } else if (channel.name === Constants.DEFAULT_CHANNEL) { channelPurpose = ( + + ); + } + + let channelPurposeElement; + if (channelPurpose) { + channelPurposeElement = (
-
{channel.purpose}
+
{channelPurpose}
); } @@ -97,7 +110,7 @@ export default class ChannelInfoModal extends React.Component { - {channelPurpose} + {channelPurposeElement} {channelHeader}
diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 68b898e7e..07cccd65c 100755 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -1227,6 +1227,7 @@ "custom_emoji.empty": "No custom emoji found", "custom_emoji.header": "Custom Emoji", "custom_emoji.search": "Search Custom Emoji", + "default_channel.purpose": "Post messages here that you want everyone to see. Everyone automatically becomes a permanent member of this channel when they join the team.", "delete_channel.cancel": "Cancel", "delete_channel.channel": "channel", "delete_channel.confirm": "Confirm DELETE Channel", @@ -1528,7 +1529,7 @@ "intro_messages.beginning": "Beginning of {name}", "intro_messages.channel": "channel", "intro_messages.creator": "This is the start of the {name} {type}, created by {creator} on {date}.", - "intro_messages.default": "

Beginning of {display_name}

Welcome to {display_name}!

This is the first channel teammates see when they sign up - use it for posting updates everyone needs to know.

", + "intro_messages.default": "

Beginning of {display_name}

Welcome to {display_name}!

Post messages here that you want everyone to see. Everyone automatically becomes a permanent member of this channel when they join the team.

", "intro_messages.group": "private group", "intro_messages.invite": "Invite others to this {type}", "intro_messages.inviteOthers": "Invite others to this team", -- cgit v1.2.3-1-g7c22