summaryrefslogtreecommitdiffstats
path: root/webapp/components/integrations/components/installed_oauth_app.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/integrations/components/installed_oauth_app.jsx')
-rw-r--r--webapp/components/integrations/components/installed_oauth_app.jsx19
1 files changed, 7 insertions, 12 deletions
diff --git a/webapp/components/integrations/components/installed_oauth_app.jsx b/webapp/components/integrations/components/installed_oauth_app.jsx
index a6dea65bf..bb6e271d4 100644
--- a/webapp/components/integrations/components/installed_oauth_app.jsx
+++ b/webapp/components/integrations/components/installed_oauth_app.jsx
@@ -10,6 +10,8 @@ import * as Utils from 'utils/utils.jsx';
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
import {regenerateOAuthAppSecret} from 'actions/admin_actions.jsx';
+import DeleteIntegration from './delete_integration.jsx';
+
const FAKE_SECRET = '***************';
export default class InstalledOAuthApp extends React.Component {
@@ -61,9 +63,7 @@ export default class InstalledOAuthApp extends React.Component {
);
}
- handleDelete(e) {
- e.preventDefault();
-
+ handleDelete() {
this.props.onDelete(this.props.oauthApp);
}
@@ -246,15 +246,10 @@ export default class InstalledOAuthApp extends React.Component {
{' - '}
{regen}
{' - '}
- <a
- href='#'
- onClick={this.handleDelete}
- >
- <FormattedMessage
- id='installed_integrations.delete'
- defaultMessage='Delete'
- />
- </a>
+ <DeleteIntegration
+ messageId='installed_oauth_apps.delete.confirm'
+ onDelete={this.handleDelete}
+ />
</div>
</div>
);