summaryrefslogtreecommitdiffstats
path: root/webapp/components/integrations/components/installed_command.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/integrations/components/installed_command.jsx')
-rw-r--r--webapp/components/integrations/components/installed_command.jsx19
1 files changed, 7 insertions, 12 deletions
diff --git a/webapp/components/integrations/components/installed_command.jsx b/webapp/components/integrations/components/installed_command.jsx
index 2e45739a0..f07d261b8 100644
--- a/webapp/components/integrations/components/installed_command.jsx
+++ b/webapp/components/integrations/components/installed_command.jsx
@@ -5,6 +5,8 @@ import React from 'react';
import {Link} from 'react-router';
import {FormattedMessage} from 'react-intl';
+import DeleteIntegration from './delete_integration.jsx';
+
export default class InstalledCommand extends React.Component {
static get propTypes() {
return {
@@ -33,9 +35,7 @@ export default class InstalledCommand extends React.Component {
this.props.onRegenToken(this.props.command);
}
- handleDelete(e) {
- e.preventDefault();
-
+ handleDelete() {
this.props.onDelete(this.props.command);
}
@@ -106,15 +106,10 @@ export default class InstalledCommand extends React.Component {
/>
</Link>
{' - '}
- <a
- href='#'
- onClick={this.handleDelete}
- >
- <FormattedMessage
- id='installed_integrations.delete'
- defaultMessage='Delete'
- />
- </a>
+ <DeleteIntegration
+ messageId='installed_commands.delete.confirm'
+ onDelete={this.handleDelete}
+ />
</div>
);
}