From dc5e7b805c3c2ef140ed30a69079a3f6684d8a1b Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Thu, 8 Jun 2017 13:46:34 +0200 Subject: [PATCH] PLT-6695 - Mobile web view: Add "Create Team" option to main menu (#6524) * PLT-6695 - Mobile web view: Add "Create Team" option to main menu * change to isSystemAdmin --- webapp/components/sidebar_right_menu.jsx | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/webapp/components/sidebar_right_menu.jsx b/webapp/components/sidebar_right_menu.jsx index 10f6bd7a53..6122f60e83 100644 --- a/webapp/components/sidebar_right_menu.jsx +++ b/webapp/components/sidebar_right_menu.jsx @@ -173,6 +173,7 @@ export default class SidebarRightMenu extends React.Component { let joinAnotherTeamLink; let isAdmin = false; let isSystemAdmin = false; + let createTeam = null; if (currentUser != null) { isAdmin = TeamStore.isTeamAdminForCurrentTeam() || UserStore.isSystemAdminForCurrentUser(); @@ -264,6 +265,25 @@ export default class SidebarRightMenu extends React.Component { ); } + + if (global.window.mm_config.EnableTeamCreation === 'true' || isSystemAdmin) { + createTeam = ( +
  • + + + + +
  • + ); + } } manageLink = ( @@ -410,7 +430,7 @@ export default class SidebarRightMenu extends React.Component { } let teamDivider = null; - if (teamSettingsLink || manageLink || joinAnotherTeamLink) { + if (teamSettingsLink || manageLink || joinAnotherTeamLink || createTeam) { teamDivider =
  • ; } @@ -480,6 +500,7 @@ export default class SidebarRightMenu extends React.Component { {teamDivider} {teamSettingsLink} {manageLink} + {createTeam} {joinAnotherTeamLink} {consoleDivider} {consoleLink}