summaryrefslogtreecommitdiffstats
path: root/webapp/components/team_sidebar/team_sidebar_controller.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-12-22 15:20:36 -0300
committerCorey Hulen <corey@hulen.com>2016-12-22 10:20:36 -0800
commitb79b2b2a53935cd883312c1158918291a926bacd (patch)
treefeb178ef53b3f8edf47824556bd4ba57ded8ce8d /webapp/components/team_sidebar/team_sidebar_controller.jsx
parentc9eb23a3d44c96042522bf7cdefc65903eb1d0a3 (diff)
downloadchat-b79b2b2a53935cd883312c1158918291a926bacd.tar.gz
chat-b79b2b2a53935cd883312c1158918291a926bacd.tar.bz2
chat-b79b2b2a53935cd883312c1158918291a926bacd.zip
Fix team switch (#4851)
* Fix team switch * Fix channel switching by using BrowserStore * Fixes plt-5076 and plt-5068 * Updating styles for Teams sidebar (#4875)
Diffstat (limited to 'webapp/components/team_sidebar/team_sidebar_controller.jsx')
-rw-r--r--webapp/components/team_sidebar/team_sidebar_controller.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/webapp/components/team_sidebar/team_sidebar_controller.jsx b/webapp/components/team_sidebar/team_sidebar_controller.jsx
index f005afeb3..24cd48d39 100644
--- a/webapp/components/team_sidebar/team_sidebar_controller.jsx
+++ b/webapp/components/team_sidebar/team_sidebar_controller.jsx
@@ -121,7 +121,7 @@ export default class TeamSidebar extends React.Component {
url={`/${team.name}`}
tip={team.display_name}
active={team.id === this.state.currentTeamId}
- contents={team.display_name.substring(0, 1).toUpperCase()}
+ displayName={team.display_name}
unread={team.unread}
mentions={team.mentions}
/>
@@ -131,6 +131,7 @@ export default class TeamSidebar extends React.Component {
if (moreTeams) {
teams.push(
<TeamButton
+ btnClass='team-btn__add'
key='more_teams'
url='/select_team'
tip={
@@ -139,12 +140,13 @@ export default class TeamSidebar extends React.Component {
defaultMessage='Other teams you can join.'
/>
}
- contents={<i className='fa fa-plus'/>}
+ content={<i className='fa fa-plus'/>}
/>
);
} else if (global.window.mm_config.EnableTeamCreation === 'true' || isSystemAdmin) {
teams.push(
<TeamButton
+ btnClass='team-btn__add'
key='more_teams'
url='/create_team'
tip={
@@ -153,7 +155,7 @@ export default class TeamSidebar extends React.Component {
defaultMessage='Create a New Team'
/>
}
- contents={<i className='fa fa-plus'/>}
+ content={<i className='fa fa-plus'/>}
/>
);
}