5461a5d10a
This fixes an issue that would stop the resolve buttons working when GitLab is installed with a relative URL Closes #21704
10 lines
553 B
Text
10 lines
553 B
Text
- 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" }
|
|
= icon("spinner spin", "v-show" => "loading")
|
|
{{ buttonText }}
|