From 1c8962cf9981edf14933264bc060168723e0bde1 Mon Sep 17 00:00:00 2001 From: David Lu Date: Thu, 30 Jun 2016 08:43:46 -0400 Subject: enabled team creation for sysadmins (#3433) --- webapp/components/select_team/select_team.jsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'webapp/components/select_team') diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx index 3b1cf829a..cc53b6b8f 100644 --- a/webapp/components/select_team/select_team.jsx +++ b/webapp/components/select_team/select_team.jsx @@ -152,6 +152,16 @@ export default class SelectTeam extends React.Component { var isSystemAdmin = Utils.isSystemAdmin(UserStore.getCurrentUser().roles); + let teamHelp = null; + if (isSystemAdmin && (global.window.mm_config.EnableTeamCreation === 'false')) { + teamHelp = ( + + ); + } + let teamSignUp; if (isSystemAdmin || (global.window.mm_config.EnableTeamCreation === 'true' && !Utils.isMobileApp())) { teamSignUp = ( @@ -165,6 +175,9 @@ export default class SelectTeam extends React.Component { defaultMessage='Create a new team' /> +
+ {teamHelp} +
); } -- cgit v1.2.3-1-g7c22