From f5cbbd9adc53afa18b9a6baf5589983b17935c8b Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 29 Oct 2015 09:01:40 -0400 Subject: [PATCH 1/2] Update town square intro text. --- web/react/components/post_list.jsx | 47 +++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 0d69e56bfb..b9741bac43 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -9,6 +9,7 @@ const LoadingScreen = require('./loading_screen.jsx'); const PostStore = require('../stores/post_store.jsx'); const ChannelStore = require('../stores/channel_store.jsx'); const UserStore = require('../stores/user_store.jsx'); +const TeamStore = require('../stores/team_store.jsx'); const SocketStore = require('../stores/socket_store.jsx'); const PreferenceStore = require('../stores/preference_store.jsx'); @@ -386,17 +387,55 @@ export default class PostList extends React.Component { } } createDefaultIntroMessage(channel) { + const team = TeamStore.getCurrent(); + let inviteModalLink; + if (team.type === Constants.INVITE_TEAM) { + inviteModalLink = ( + + {'Invite others to this team'} + + ); + } else { + inviteModalLink = ( + {'Invite others to this team'} + + ); + } + return (

{'Beginning of ' + channel.display_name}

- {'Welcome to ' + channel.display_name + '!'} + {'Welcome to ' + channel.display_name + '!'}

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

- {'To create a new channel or join an existing one, go to the Left Sidebar under “Channels” and click “More…”.'} -

+ {inviteModalLink} + + {'Set a header'} + +
); } From d56757b745c7f3c194f0a0ad25900c8a462a51c6 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 29 Oct 2015 09:03:34 -0400 Subject: [PATCH 2/2] Add team type constants. --- web/react/utils/constants.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx index 69e3b007db..43d81d322a 100644 --- a/web/react/utils/constants.jsx +++ b/web/react/utils/constants.jsx @@ -127,6 +127,8 @@ module.exports = { MAX_DMS: 20, DM_CHANNEL: 'D', OPEN_CHANNEL: 'O', + INVITE_TEAM: 'I', + OPEN_TEAM: 'O', MAX_POST_LEN: 4000, EMOJI_SIZE: 16, ONLINE_ICON_SVG: "",