diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-04-01 12:04:40 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-04-01 12:04:40 -0400 |
commit | 9241f799dd59db14dd06b0536db9cb820b1b60db (patch) | |
tree | 93b07af94b7a3e086f6921b87688736bc9979d6e /webapp/components/tutorial/tutorial_intro_screens.jsx | |
parent | 763bfc780ae7dbdda78a0e40295d30844536abe3 (diff) | |
parent | 494d09a81eddec88ad48c7067d0b47a41cf7ed8b (diff) | |
download | chat-9241f799dd59db14dd06b0536db9cb820b1b60db.tar.gz chat-9241f799dd59db14dd06b0536db9cb820b1b60db.tar.bz2 chat-9241f799dd59db14dd06b0536db9cb820b1b60db.zip |
Merge pull request #2609 from mattermost/plt-2311
PLT-2311 Update tutorial channel names to reflect actual display names
Diffstat (limited to 'webapp/components/tutorial/tutorial_intro_screens.jsx')
-rw-r--r-- | webapp/components/tutorial/tutorial_intro_screens.jsx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/webapp/components/tutorial/tutorial_intro_screens.jsx b/webapp/components/tutorial/tutorial_intro_screens.jsx index bad426cfc..0358a6a65 100644 --- a/webapp/components/tutorial/tutorial_intro_screens.jsx +++ b/webapp/components/tutorial/tutorial_intro_screens.jsx @@ -19,6 +19,12 @@ const NUM_SCREENS = 3; import React from 'react'; export default class TutorialIntroScreens extends React.Component { + static get propTypes() { + return { + townSquare: React.PropTypes.object, + offTopic: React.PropTypes.object + }; + } constructor(props) { super(props); @@ -153,6 +159,11 @@ export default class TutorialIntroScreens extends React.Component { ); } + let townSquareDisplayName = Constants.DEFAULT_CHANNEL_UI_NAME; + if (this.props.townSquare) { + townSquareDisplayName = this.props.townSquare.display_name; + } + return ( <div> <h3> @@ -171,7 +182,10 @@ export default class TutorialIntroScreens extends React.Component { {supportInfo} <FormattedMessage id='tutorial_intro.end' - defaultMessage='Click “Next” to enter Town Square. This is the first channel teammates see when they sign up. Use it for posting updates everyone needs to know.' + defaultMessage='Click “Next” to enter {channel}. This is the first channel teammates see when they sign up. Use it for posting updates everyone needs to know.' + values={{ + channel: townSquareDisplayName + }} /> {circles} </div> |