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 (
- {'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…”.'}
-