added html to response

This commit is contained in:
Phil Hughes 2018-07-02 10:38:03 +01:00
parent 3b9bb25dfe
commit 6021ab6f77
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
2 changed files with 8 additions and 2 deletions

View File

@ -53,11 +53,11 @@ export default {
<div class="issuable-details">
<title-component
:issuable-ref="currentMergeRequest.iid"
:title-html="currentMergeRequest.title"
:title-html="currentMergeRequest.title_html"
:title-text="currentMergeRequest.title"
/>
<description-component
:description-html="currentMergeRequest.description"
:description-html="currentMergeRequest.description_html"
:description-text="currentMergeRequest.description"
:can-update="false"
/>

View File

@ -388,6 +388,12 @@ module API
expose :id, :iid
expose(:project_id) { |entity| entity&.project.try(:id) }
expose :title, :description
expose :title_html do |entity|
MarkupHelper::markdown_field(entity, :title)
end
expose :description_html do |entity|
MarkupHelper::markdown_field(entity, :description)
end
expose :state, :created_at, :updated_at
end