2016-08-12 16:10:05 -04:00
|
|
|
- if discussion.for_merge_request?
|
|
|
|
%resolve-discussion-btn{ ":namespace-path" => "'#{discussion.project.namespace.path}'",
|
|
|
|
":project-path" => "'#{discussion.project.path}'",
|
|
|
|
":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" }
|
2016-08-01 05:06:31 -04:00
|
|
|
%button.btn.btn-default{ type: "button", "@click" => "resolve", ":disabled" => "loading" }
|
|
|
|
= icon("spinner spin", "v-show" => "loading")
|
|
|
|
{{ buttonText }}
|