diff options
author | kushalpandya <kushal@gitlab.com> | 2017-05-25 11:54:02 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-06-01 08:47:15 +0300 |
commit | 791e5024efbfaadf342f9a019b59e65af0249c3b (patch) | |
tree | 7b627fe78b6ffc5be42a3210ebd6ad54224ba986 /app/assets/javascripts/integrations | |
parent | fb1ba0a55f07eca026b67c0c48c00be3569653b2 (diff) |
Prevent default action of Flash banner action link click
Diffstat (limited to 'app/assets/javascripts/integrations')
-rw-r--r-- | app/assets/javascripts/integrations/integration_settings_form.js | 3 |
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(); }, }); |