Check remove source branch when merge is in progress
This commit is contained in:
parent
6194db8c15
commit
3f145899ca
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
- case @status
|
||||
- when :success
|
||||
- remove_source_branch = params[:should_remove_source_branch] == '1' || @merge_request.remove_source_branch?
|
||||
:plain
|
||||
merge_request_widget.mergeInProgress(#{params[:should_remove_source_branch] == '1'});
|
||||
merge_request_widget.mergeInProgress(#{remove_source_branch});
|
||||
- when :merge_when_pipeline_succeeds
|
||||
:plain
|
||||
$('.mr-widget-body').html("#{escape_javascript(render('projects/merge_requests/widget/open/merge_when_pipeline_succeeds'))}");
|
||||
|
|
Loading…
Reference in a new issue