fix: show response_html in email template selector
This commit is contained in:
parent
1318473b37
commit
187bc55d46
@ -31,7 +31,14 @@
|
|||||||
{{ __('Subject: {0}', [template.subject]) }}
|
{{ __('Subject: {0}', [template.subject]) }}
|
||||||
</div>
|
</div>
|
||||||
<TextEditor
|
<TextEditor
|
||||||
v-if="template.response"
|
v-if="template.use_html && template.response_html"
|
||||||
|
:content="template.response_html"
|
||||||
|
:editable="false"
|
||||||
|
editor-class="!prose-sm max-w-none !text-sm text-gray-600 focus:outline-none"
|
||||||
|
class="flex-1 overflow-hidden"
|
||||||
|
/>
|
||||||
|
<TextEditor
|
||||||
|
v-else-if="template.response"
|
||||||
:content="template.response"
|
:content="template.response"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
editor-class="!prose-sm max-w-none !text-sm text-gray-600 focus:outline-none"
|
editor-class="!prose-sm max-w-none !text-sm text-gray-600 focus:outline-none"
|
||||||
@ -97,9 +104,11 @@ const templates = createListResource({
|
|||||||
fields: [
|
fields: [
|
||||||
'name',
|
'name',
|
||||||
'enabled',
|
'enabled',
|
||||||
|
'use_html',
|
||||||
'reference_doctype',
|
'reference_doctype',
|
||||||
'subject',
|
'subject',
|
||||||
'response',
|
'response',
|
||||||
|
'response_html',
|
||||||
'modified',
|
'modified',
|
||||||
'owner',
|
'owner',
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user