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 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'webapp/components/channel_info_modal.jsx') 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}
-- cgit v1.2.3-1-g7c22