summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-05-25 14:24:02 +0530
committerJarka Kadlecova <jarka@gitlab.com>2017-06-01 07:47:15 +0200
commit791e5024efbfaadf342f9a019b59e65af0249c3b (patch)
tree7b627fe78b6ffc5be42a3210ebd6ad54224ba986 /app
parentfb1ba0a55f07eca026b67c0c48c00be3569653b2 (diff)
downloadgitlab-ce-791e5024efbfaadf342f9a019b59e65af0249c3b.tar.gz
Prevent default action of Flash banner action link click
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/integrations/integration_settings_form.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/integrations/integration_settings_form.js b/app/assets/javascripts/integrations/integration_settings_form.js
index b3adc15e3ee..bb551b5bb4c 100644
--- a/app/assets/javascripts/integrations/integration_settings_form.js
+++ b/app/assets/javascripts/integrations/integration_settings_form.js
@@ -82,7 +82,8 @@ export default class IntegrationSettingsForm {
if (res.error) {
new Flash(`${res.message}.`, null, null, {
title: 'Save anyway',
- clickHandler: () => {
+ clickHandler: (e) => {
+ e.preventDefault();
this.$form.submit();
},
});