diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-28 16:32:43 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-29 15:18:48 -0400 |
commit | fcd8f2e2badc0d314eaba2f1e0360274e0ba9e24 (patch) | |
tree | 3c00c5f658bd175d3642041498b4d87a1390c595 /webapp | |
parent | bb13476326b81191ba4aa854c25224638735272c (diff) | |
download | chat-fcd8f2e2badc0d314eaba2f1e0360274e0ba9e24.tar.gz chat-fcd8f2e2badc0d314eaba2f1e0360274e0ba9e24.tar.bz2 chat-fcd8f2e2badc0d314eaba2f1e0360274e0ba9e24.zip |
Added menu option to go to new integrations page
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/navbar_dropdown.jsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx index 7e42a71ea..48ddd9bc7 100644 --- a/webapp/components/navbar_dropdown.jsx +++ b/webapp/components/navbar_dropdown.jsx @@ -59,6 +59,7 @@ export default class NavbarDropdown extends React.Component { var isAdmin = false; var isSystemAdmin = false; var teamSettings = null; + let integrationsLink = null; if (currentUser != null) { isAdmin = Utils.isAdmin(currentUser.roles); @@ -125,6 +126,21 @@ export default class NavbarDropdown extends React.Component { ); } + if (window.mm_config.EnableIncomingWebhooks === 'true' || window.mm_config.EnableOutgoingWebhooks === 'true') { + if (isAdmin || window.EnableAdminOnlyIntegrations !== 'true') { + integrationsLink = ( + <li> + <Link to={'/' + this.props.teamName + '/integrations'}> + <FormattedMessage + id='navbar_dropdown.integrations' + defaultMessage='Integrations' + /> + </Link> + </li> + ); + } + } + if (isSystemAdmin) { sysAdminLink = ( <li> @@ -238,6 +254,7 @@ export default class NavbarDropdown extends React.Component { </li> {adminDivider} {teamSettings} + {integrationsLink} {manageLink} {sysAdminLink} {teams} |