diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-29 15:13:31 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-29 15:19:04 -0400 |
commit | 132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5 (patch) | |
tree | 9c9f4db39a0172b4e4752801ac1a0a4d9fe64b18 /webapp/components/backstage/add_integration.jsx | |
parent | 46020c7722aff1690aae8f31c443c0c6af4a6083 (diff) | |
download | chat-132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5.tar.gz chat-132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5.tar.bz2 chat-132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5.zip |
Moved backstage integrations pages to /settings/integrations
Diffstat (limited to 'webapp/components/backstage/add_integration.jsx')
-rw-r--r-- | webapp/components/backstage/add_integration.jsx | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/webapp/components/backstage/add_integration.jsx b/webapp/components/backstage/add_integration.jsx index 1e57bd55d..cebc1e8b0 100644 --- a/webapp/components/backstage/add_integration.jsx +++ b/webapp/components/backstage/add_integration.jsx @@ -3,45 +3,13 @@ import React from 'react'; -import TeamStore from 'stores/team_store.jsx'; - import {FormattedMessage} from 'react-intl'; import AddIntegrationOption from './add_integration_option.jsx'; import WebhookIcon from 'images/webhook_icon.jpg'; export default class AddIntegration extends React.Component { - constructor(props) { - super(props); - - this.handleChange = this.handleChange.bind(this); - - this.state = { - team: TeamStore.getCurrent() - }; - } - - componentDidMount() { - TeamStore.addChangeListener(this.handleChange); - } - - componentWillUnmount() { - TeamStore.removeChangeListener(this.handleChange); - } - - handleChange() { - this.setState({ - team: TeamStore.getCurrent() - }); - } - render() { - const team = TeamStore.getCurrent(); - - if (!team) { - return null; - } - const options = []; if (window.mm_config.EnableIncomingWebhooks === 'true') { @@ -61,7 +29,7 @@ export default class AddIntegration extends React.Component { defaultMessage='Create webhook URLs for use in external integrations.' /> } - link={`/${team.name}/integrations/add/incoming_webhook`} + link={'/settings/integrations/add/incoming_webhook'} /> ); } @@ -83,7 +51,7 @@ export default class AddIntegration extends React.Component { defaultMessage='Create webhooks to send new message events to an external integration.' /> } - link={`/${team.name}/integrations/add/outgoing_webhook`} + link={'/settings/integrations/add/outgoing_webhook'} /> ); } |