BigW Consortium Gitlab

_jump_to_next.html.haml 689 Bytes
Newer Older
1
- diff_notes_disabled = (@merge_request_diff.latest? && !!@start_sha) if @merge_request_diff
Douwe Maan committed
2
- discussion = local_assigns.fetch(:discussion, nil)
3 4
- if current_user
  %jump-to-discussion{ "inline-template" => true, ":discussion-id" => "'#{discussion.try(:id)}'" }
Connor Shea committed
5
    .btn-group{ role: "group", "v-show" => "!allResolved", "v-if" => "showButton" }
6 7 8
      %button.btn.btn-default.discussion-next-btn.has-tooltip{ "@click" => "jumpToNextUnresolvedDiscussion",
        title: "Jump to next unresolved discussion",
        "aria-label" => "Jump to next unresolved discussion",
9
        data: { container: "body" },
10
        disabled: diff_notes_disabled }
11
        = custom_icon("next_discussion")