diff options
author | Simon Knox <psimyn@gmail.com> | 2017-04-12 17:03:39 +1000 |
---|---|---|
committer | Simon Knox <psimyn@gmail.com> | 2017-04-13 22:25:08 +1000 |
commit | 3cc806ee13844395b3ec16bbf071b7b3bf6da31b (patch) | |
tree | 1af43b7f50f912895fc8edfbe98302a5bd932233 /app | |
parent | 81c920f13aadf61d072889d1533bb6621868501c (diff) | |
download | gitlab-ce-3cc806ee13844395b3ec16bbf071b7b3bf6da31b.tar.gz |
tests for success and failure of deleting branch from MR page30188-handle-remove-branch-failure
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/merged_buttons.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/merged_buttons.js b/app/assets/javascripts/merged_buttons.js index a88876d0c24..7b0997c6520 100644 --- a/app/assets/javascripts/merged_buttons.js +++ b/app/assets/javascripts/merged_buttons.js @@ -1,5 +1,7 @@ /* eslint-disable func-names, space-before-function-paren, no-var, prefer-rest-params, wrap-iife, max-len */ +import '~/lib/utils/url_utility'; + (function() { this.MergedButtons = (function() { function MergedButtons() { @@ -31,7 +33,7 @@ }; MergedButtons.prototype.removeBranchSuccess = function() { - return location.reload(); + gl.utils.refreshCurrentPage(); }; MergedButtons.prototype.removeBranchError = function() { |