Commit 3fba2114 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix bug MR notes not being loaded when navigate from diff tab

parent 2644be566349
......@@ -20,9 +20,6 @@ def index
end
def show
@target_type = :merge_request
@target_id = @merge_request.id
respond_to do |format|
format.html
format.js
......@@ -144,6 +141,9 @@ def define_show_vars
@allowed_to_merge = allowed_to_merge?
@show_merge_controls = @merge_request.opened? && @commits.any? && @allowed_to_merge
@target_type = :merge_request
@target_id = @merge_request.id
end
def allowed_to_merge?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment