summaryrefslogtreecommitdiffstats
path: root/webapp/components/backstage/add_outgoing_webhook.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/add_outgoing_webhook.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/add_outgoing_webhook.jsx')
-rw-r--r--webapp/components/backstage/add_outgoing_webhook.jsx27
1 files changed, 2 insertions, 25 deletions
diff --git a/webapp/components/backstage/add_outgoing_webhook.jsx b/webapp/components/backstage/add_outgoing_webhook.jsx
index ea530ff57..3ae2f8606 100644
--- a/webapp/components/backstage/add_outgoing_webhook.jsx
+++ b/webapp/components/backstage/add_outgoing_webhook.jsx
@@ -5,7 +5,6 @@ import React from 'react';
import * as AsyncClient from 'utils/async_client.jsx';
import {browserHistory} from 'react-router';
-import TeamStore from 'stores/team_store.jsx';
import ChannelSelect from 'components/channel_select.jsx';
import {FormattedMessage} from 'react-intl';
@@ -17,7 +16,6 @@ export default class AddOutgoingWebhook extends React.Component {
constructor(props) {
super(props);
- this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.updateName = this.updateName.bind(this);
@@ -27,7 +25,6 @@ export default class AddOutgoingWebhook extends React.Component {
this.updateCallbackUrls = this.updateCallbackUrls.bind(this);
this.state = {
- team: TeamStore.getCurrent(),
name: '',
description: '',
channelId: '',
@@ -39,20 +36,6 @@ export default class AddOutgoingWebhook extends React.Component {
};
}
- componentDidMount() {
- TeamStore.addChangeListener(this.handleChange);
- }
-
- componentWillUnmount() {
- TeamStore.removeChangeListener(this.handleChange);
- }
-
- handleChange() {
- this.setState({
- team: TeamStore.getCurrent()
- });
- }
-
handleSubmit(e) {
e.preventDefault();
@@ -103,7 +86,7 @@ export default class AddOutgoingWebhook extends React.Component {
AsyncClient.addOutgoingHook(
hook,
() => {
- browserHistory.push(`/${this.state.team.name}/integrations/installed`);
+ browserHistory.push('/settings/integrations/installed');
},
(err) => {
this.setState({
@@ -144,12 +127,6 @@ export default class AddOutgoingWebhook extends React.Component {
}
render() {
- const team = TeamStore.getCurrent();
-
- if (!team) {
- return null;
- }
-
return (
<div className='backstage row'>
<div className='add-outgoing-webhook'>
@@ -250,7 +227,7 @@ export default class AddOutgoingWebhook extends React.Component {
<div className='add-integration__submit-row'>
<Link
className='btn btn-sm'
- to={`/${team.name}/integrations/add`}
+ to={'/settings/integrations/add'}
>
<FormattedMessage
id='add_outgoing_webhook.cancel'