diff options
Diffstat (limited to 'webapp/components/backstage/add_integration.jsx')
-rw-r--r-- | webapp/components/backstage/add_integration.jsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/webapp/components/backstage/add_integration.jsx b/webapp/components/backstage/add_integration.jsx index 5f4a69bfe..0ab36e101 100644 --- a/webapp/components/backstage/add_integration.jsx +++ b/webapp/components/backstage/add_integration.jsx @@ -56,6 +56,28 @@ export default class AddIntegration extends React.Component { ); } + if (window.mm_config.EnableCommands === 'true') { + options.push( + <AddIntegrationOption + key='command' + image={WebhookIcon} + title={ + <FormattedMessage + id='add_integration.command.title' + defaultMessage='Slash Command' + /> + } + description={ + <FormattedMessage + id='add_integration.command.description' + defaultMessage='Create slash commands to send events to external integrations and receive a response.' + /> + } + link={'/settings/integrations/add/command'} + /> + ); + } + return ( <div className='backstage-content row'> <div className='backstage-header'> |