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'} + +
); } 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: "",