From fcd8f2e2badc0d314eaba2f1e0360274e0ba9e24 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 28 Mar 2016 16:32:43 -0400 Subject: Added menu option to go to new integrations page --- webapp/components/navbar_dropdown.jsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'webapp/components/navbar_dropdown.jsx') 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 = ( +
  • + + + +
  • + ); + } + } + if (isSystemAdmin) { sysAdminLink = (
  • @@ -238,6 +254,7 @@ export default class NavbarDropdown extends React.Component {
  • {adminDivider} {teamSettings} + {integrationsLink} {manageLink} {sysAdminLink} {teams} -- cgit v1.2.3-1-g7c22