Skip to content
Snippets Groups Projects
Commit 67fa72ba authored by Bryce Johnson's avatar Bryce Johnson Committed by Jacob Schatz
Browse files

Switch out comments_disabled for diff_notes_disabled.

parent b68b17dd
No related branches found
No related tags found
1 merge request!6343Frontend for Merge Request Diff
-if @merge_request_diff
- comments_disabled = @merge_request_diff.latest? && !!@start_sha
- diff_notes_disabled = (@merge_request_diff.latest? && !!@start_sha) if @merge_request_diff
- discussion = local_assigns.fetch(:discussion, nil)
- if current_user
%jump-to-discussion{ "inline-template" => true, ":discussion-id" => "'#{discussion.try(:id)}'" }
Loading
Loading
@@ -8,5 +7,5 @@
title: "Jump to next unresolved discussion",
"aria-label" => "Jump to next unresolved discussion",
data: { container: "body" },
disabled: comments_disabled }
disabled: diff_notes_disabled }
= custom_icon("next_discussion")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment