From 132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Tue, 29 Mar 2016 15:13:31 -0400
Subject: Moved backstage integrations pages to /settings/integrations

---
 webapp/components/backstage/add_integration.jsx | 36 ++-----------------------
 1 file changed, 2 insertions(+), 34 deletions(-)

(limited to 'webapp/components/backstage/add_integration.jsx')

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'}
                 />
             );
         }
-- 
cgit v1.2.3-1-g7c22

