554afea059
The dispatcher was trying to create a new instance of a class that is loaded in a file after main.js which would cause the filtered search to not work on issues. This would only happen on the first load when the JS is not cached. If the JS is cached, then everything will be fine.
11 lines
1.2 KiB
Text
11 lines
1.2 KiB
Text
- content_for :note_actions do
|
|
- if can?(current_user, :update_merge_request, @merge_request)
|
|
- if @merge_request.open?
|
|
= link_to 'Close merge request', merge_request_path(@merge_request, merge_request: { state_event: :close }), method: :put, class: "btn btn-nr btn-comment btn-close close-mr-link js-note-target-close", title: "Close merge request", data: { original_text: "Close merge request", alternative_text: "Comment & close merge request"}
|
|
- if @merge_request.reopenable?
|
|
= link_to 'Reopen merge request', merge_request_path(@merge_request, merge_request: { state_event: :reopen }), method: :put, class: "btn btn-nr btn-comment btn-reopen reopen-mr-link js-note-target-close js-note-target-reopen", title: "Reopen merge request", data: { original_text: "Reopen merge request", alternative_text: "Comment & reopen merge request"}
|
|
%comment-and-resolve-btn{ "inline-template" => true }
|
|
%button.btn.btn-nr.btn-default.append-right-10.js-comment-resolve-button{ "v-if" => "showButton", type: "submit", data: { project_path: "#{project_path(@merge_request.project)}" } }
|
|
{{ buttonText }}
|
|
|
|
#notes= render "shared/notes/notes_with_form", :autocomplete => true
|