Added menu option to go to new integrations page
Этот коммит содержится в:
@@ -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}
|
||||
|
||||
Ссылка в новой задаче
Block a user