summaryrefslogtreecommitdiff
path: root/app/views/discussions/_resolve_all.html.haml
blob: f0b61e0f7de3812ae21a85147f83055f965bff30 (plain)
1
2
3
4
5
6
7
8
9
10
- if discussion.for_merge_request?
  %resolve-discussion-btn{ ":project-path" => "'#{project_path(discussion.project)}'",
      ":discussion-id" => "'#{discussion.id}'",
      ":merge-request-id" => discussion.noteable.iid,
      ":can-resolve" => discussion.can_resolve?(current_user),
      "inline-template" => true }
    .btn-group{ role: "group", "v-if" => "showButton" }
      %button.btn.btn-default{ type: "button", "@click" => "resolve", ":disabled" => "loading", "v-cloak" => "true" }
        = icon("spinner spin", "v-show" => "loading")
        {{ buttonText }}