diff options
Diffstat (limited to 'webapp/components/integrations/components/add_outgoing_webhook.jsx')
-rw-r--r-- | webapp/components/integrations/components/add_outgoing_webhook.jsx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/webapp/components/integrations/components/add_outgoing_webhook.jsx b/webapp/components/integrations/components/add_outgoing_webhook.jsx deleted file mode 100644 index d7f338587..000000000 --- a/webapp/components/integrations/components/add_outgoing_webhook.jsx +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import {addOutgoingHook} from 'actions/integration_actions.jsx'; -import {browserHistory} from 'react-router/es6'; - -import AbstractOutgoingWebhook from './abstract_outgoing_webhook.jsx'; - -export default class AddOutgoingWebhook extends AbstractOutgoingWebhook { - performAction(hook) { - addOutgoingHook( - hook, - (data) => { - browserHistory.push(`/${this.props.team.name}/integrations/confirm?type=outgoing_webhooks&id=${data.id}`); - }, - (err) => { - this.setState({ - saving: false, - serverError: err.message - }); - } - ); - } - - header() { - return {id: 'integrations.add', defaultMessage: 'Add'}; - } - - footer() { - return {id: 'add_outgoing_webhook.save', defaultMessage: 'Save'}; - } - - renderExtra() { - return ''; - } -} |