summaryrefslogtreecommitdiffstats
path: root/webapp/components/backstage/installed_integrations.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-03-29 15:13:31 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2016-03-29 15:19:04 -0400
commit132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5 (patch)
tree9c9f4db39a0172b4e4752801ac1a0a4d9fe64b18 /webapp/components/backstage/installed_integrations.jsx
parent46020c7722aff1690aae8f31c443c0c6af4a6083 (diff)
downloadchat-132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5.tar.gz
chat-132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5.tar.bz2
chat-132d4cdf8f01b068ec9c343a4ecbf1e7e23e19e5.zip
Moved backstage integrations pages to /settings/integrations
Diffstat (limited to 'webapp/components/backstage/installed_integrations.jsx')
-rw-r--r--webapp/components/backstage/installed_integrations.jsx17
1 files changed, 1 insertions, 16 deletions
diff --git a/webapp/components/backstage/installed_integrations.jsx b/webapp/components/backstage/installed_integrations.jsx
index 45f289df4..ff0b6e4ec 100644
--- a/webapp/components/backstage/installed_integrations.jsx
+++ b/webapp/components/backstage/installed_integrations.jsx
@@ -6,7 +6,6 @@ import React from 'react';
import * as AsyncClient from 'utils/async_client.jsx';
import ChannelStore from 'stores/channel_store.jsx';
import IntegrationStore from 'stores/integration_store.jsx';
-import TeamStore from 'stores/team_store.jsx';
import * as Utils from 'utils/utils.jsx';
import {FormattedMessage} from 'react-intl';
@@ -19,7 +18,6 @@ export default class InstalledIntegrations extends React.Component {
super(props);
this.handleIntegrationChange = this.handleIntegrationChange.bind(this);
- this.handleTeamChange = this.handleTeamChange.bind(this);
this.updateFilter = this.updateFilter.bind(this);
this.updateTypeFilter = this.updateTypeFilter.bind(this);
@@ -28,7 +26,6 @@ export default class InstalledIntegrations extends React.Component {
this.deleteOutgoingWebhook = this.deleteOutgoingWebhook.bind(this);
this.state = {
- team: TeamStore.getCurrent(),
incomingWebhooks: [],
outgoingWebhooks: [],
typeFilter: '',
@@ -38,7 +35,6 @@ export default class InstalledIntegrations extends React.Component {
componentWillMount() {
IntegrationStore.addChangeListener(this.handleIntegrationChange);
- TeamStore.addChangeListener(this.handleTeamChange);
if (window.mm_config.EnableIncomingWebhooks === 'true') {
if (IntegrationStore.hasReceivedIncomingWebhooks()) {
@@ -63,7 +59,6 @@ export default class InstalledIntegrations extends React.Component {
componentWillUnmount() {
IntegrationStore.removeChangeListener(this.handleIntegrationChange);
- TeamStore.removeChangeListener(this.handleTeamChange);
}
handleIntegrationChange() {
@@ -73,12 +68,6 @@ export default class InstalledIntegrations extends React.Component {
});
}
- handleTeamChange() {
- this.setState({
- team: TeamStore.getCurrent()
- });
- }
-
updateTypeFilter(e, typeFilter) {
e.preventDefault();
@@ -206,10 +195,6 @@ export default class InstalledIntegrations extends React.Component {
}
render() {
- if (!this.state.team) {
- return null;
- }
-
const incomingWebhooks = this.state.incomingWebhooks;
const outgoingWebhooks = this.state.outgoingWebhooks;
@@ -269,7 +254,7 @@ export default class InstalledIntegrations extends React.Component {
</h1>
<Link
className='add-integrations-link'
- to={`/${this.state.team.name}/integrations/add`}
+ to={'/settings/integrations/add'}
>
<button
type='button'