2016-08-12 16:10:05 -04:00
|
|
|
- if discussion.for_merge_request?
|
2017-02-08 09:58:08 -05:00
|
|
|
%resolve-discussion-btn{ ":discussion-id" => "'#{discussion.id}'",
|
2016-08-12 16:10:05 -04:00
|
|
|
":merge-request-id" => discussion.noteable.iid,
|
|
|
|
":can-resolve" => discussion.can_resolve?(current_user),
|
|
|
|
"inline-template" => true }
|
|
|
|
.btn-group{ role: "group", "v-if" => "showButton" }
|
2016-09-27 18:50:09 -04:00
|
|
|
%button.btn.btn-default{ type: "button", "@click" => "resolve", ":disabled" => "loading", "v-cloak" => "true" }
|
2016-08-01 05:06:31 -04:00
|
|
|
= icon("spinner spin", "v-show" => "loading")
|
|
|
|
{{ buttonText }}
|