• Jacob Schatz's avatar
    Merge branch 'no-comment-button-on-discussion-diffs' into 'master' · bae17911
    Jacob Schatz authored
    Don't show comment button in gutter of diffs on MR discussion tab
    
    When browsing to an MR, switching to the Changes tab, and switching back to the Discussions tab, the gutter of the diffs on that page would show the comment button on-hover, while it shouldn't, since comments on new lines can only be created from the Changes tab.
    
    ![Screen_Shot_2016-07-25_at_22.01.11](/uploads/6b044e1a3ecb34ddaa0af432833473aa/Screen_Shot_2016-07-25_at_22.01.11.png)
    
    `8-10-stable` counterpart at https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5493
    
    See merge request !5492
    bae17911
files_comment_button.js 5.45 KB