Task #735 Automerge should not be checked on every load of MR show page
This commit is contained in:
parent
28cb43135c
commit
43dcc9575a
2 changed files with 14 additions and 4 deletions
|
@ -101,6 +101,8 @@
|
|||
$(function(){
|
||||
MergeRequest.init({
|
||||
url_to_automerge_check: "#{automerge_check_project_merge_request_path(@project, @merge_request)}",
|
||||
check_enable: #{@merge_request.state == MergeRequest::UNCHECKED ? "true" : "false"},
|
||||
current_state: "#{@merge_request.human_state}"
|
||||
});
|
||||
|
||||
$(".accept_merge_request").live("ajax:beforeSend", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue