Skip to content
Snippets Groups Projects
Commit 2e8811a5 authored by Phil Hughes's avatar Phil Hughes
Browse files

Merge branch 'comment-new-MR' into 'master'

Hide toggle comments button on MR creation view

See merge request !123689



Merged-by: default avatarPhil Hughes <me@iamphill.com>
Approved-by: default avatarSascha Eggenberger <seggenberger@gitlab.com>
Approved-by: default avatarPhil Hughes <me@iamphill.com>
Co-authored-by: default avatarAnnabel Dunstone Gray <annabel.dunstone@gmail.com>
parents d22cd27c f284a220
No related branches found
No related tags found
1 merge request!123689Hide toggle comments button on MR creation view
Pipeline #901482694 passed
......@@ -17,9 +17,10 @@
.file-actions.gl-display-none.gl-sm-display-flex
#js-diff-stats{ data: diff_file_stats_data(diff_file) }
- if diff_file.blob&.readable_text?
%span.has-tooltip{ title: _("Toggle comments for this file") }
= link_to '#', class: 'js-toggle-diff-comments btn gl-button btn-default btn-icon selected', disabled: @diff_notes_disabled do
= sprite_icon('comment')
- unless @diff_notes_disabled
%span.has-tooltip{ title: _("Toggle comments for this file") }
= link_to '#', class: 'js-toggle-diff-comments btn gl-button btn-default btn-icon selected' do
= sprite_icon('comment')
\
- if editable_diff?(diff_file)
- link_opts = @merge_request.persisted? ? { from_merge_request_iid: @merge_request.iid } : {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment