2016-09-13 17:45:13 +05:30
|
|
|
- if discussion.for_merge_request?
|
2016-10-01 15:18:49 +05:30
|
|
|
%resolve-discussion-btn{ ":project-path" => "'#{project_path(discussion.project)}'",
|
2016-09-13 17:45:13 +05:30
|
|
|
":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-10-01 15:18:49 +05:30
|
|
|
%button.btn.btn-default{ type: "button", "@click" => "resolve", ":disabled" => "loading", "v-cloak" => "true" }
|
2016-09-13 17:45:13 +05:30
|
|
|
= icon("spinner spin", "v-show" => "loading")
|
|
|
|
{{ buttonText }}
|