2016-07-28 22:09:36 -04:00
|
|
|
- if discussion.can_resolve?(current_user)
|
2016-07-29 06:19:56 -04:00
|
|
|
%resolve-discussion-btn{ ":namespace-path" => "'#{discussion.project.namespace.path}'",
|
2016-07-26 08:44:51 -04:00
|
|
|
":project-path" => "'#{discussion.project.path}'",
|
2016-07-26 00:48:15 -04:00
|
|
|
":discussion-id" => "'#{discussion.id}'",
|
2016-07-28 22:09:36 -04:00
|
|
|
":merge-request-id" => "#{discussion.noteable.iid}",
|
2016-07-26 00:48:15 -04:00
|
|
|
"inline-template" => true,
|
|
|
|
"v-cloak" => true }
|
|
|
|
%button.btn.btn-default{ type: "button", "@click" => "resolve", ":disabled" => "loading" }
|
|
|
|
= icon("spinner spin", "v-show" => "loading")
|
|
|
|
{{ buttonText }}
|