fix: show subject in email content
This commit is contained in:
parent
a751b2d3e9
commit
04633880cf
@ -383,14 +383,27 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-sm leading-5 text-gray-600">
|
||||||
|
{{ activity.data.subject }}
|
||||||
|
</div>
|
||||||
<div class="mb-3 text-sm leading-5 text-gray-600">
|
<div class="mb-3 text-sm leading-5 text-gray-600">
|
||||||
<span class="mr-1">TO:</span>
|
<span class="mr-1 text-2xs font-bold text-gray-500">TO:</span>
|
||||||
<span>{{ activity.data.recipients }}</span>
|
<span>{{ activity.data.recipients }}</span>
|
||||||
<span v-if="activity.data.cc">, </span>
|
<span v-if="activity.data.cc">, </span>
|
||||||
<span v-if="activity.data.cc" class="mr-1">CC:</span>
|
<span
|
||||||
|
v-if="activity.data.cc"
|
||||||
|
class="mr-1 text-2xs font-bold text-gray-500"
|
||||||
|
>
|
||||||
|
CC:
|
||||||
|
</span>
|
||||||
<span v-if="activity.data.cc">{{ activity.data.cc }}</span>
|
<span v-if="activity.data.cc">{{ activity.data.cc }}</span>
|
||||||
<span v-if="activity.data.bcc">, </span>
|
<span v-if="activity.data.bcc">, </span>
|
||||||
<span v-if="activity.data.bcc" class="mr-1">BCC:</span>
|
<span
|
||||||
|
v-if="activity.data.bcc"
|
||||||
|
class="mr-1 text-2xs font-bold text-gray-500"
|
||||||
|
>
|
||||||
|
BCC:
|
||||||
|
</span>
|
||||||
<span v-if="activity.data.bcc">{{ activity.data.bcc }}</span>
|
<span v-if="activity.data.bcc">{{ activity.data.bcc }}</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="prose-f" v-html="activity.data.content" />
|
<span class="prose-f" v-html="activity.data.content" />
|
||||||
@ -405,7 +418,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-4" v-else-if="activity.activity_type == 'comment'">
|
<div class="mb-4" v-else-if="activity.activity_type == 'comment'">
|
||||||
<div class="mb-0.5 py-1.5 flex items-start justify-stretch gap-2 text-base">
|
<div
|
||||||
|
class="mb-0.5 flex items-start justify-stretch gap-2 py-1.5 text-base"
|
||||||
|
>
|
||||||
<div class="inline-flex flex-wrap gap-1 text-gray-600">
|
<div class="inline-flex flex-wrap gap-1 text-gray-600">
|
||||||
<span class="font-medium text-gray-800">
|
<span class="font-medium text-gray-800">
|
||||||
{{ activity.owner_name }}
|
{{ activity.owner_name }}
|
||||||
|
|||||||
@ -195,14 +195,18 @@ const addValue = (value) => {
|
|||||||
value = value.trim()
|
value = value.trim()
|
||||||
if (value) {
|
if (value) {
|
||||||
// check if value is not already in the values array
|
// check if value is not already in the values array
|
||||||
if (!values.value.includes(value)) {
|
if (!values.value?.includes(value)) {
|
||||||
// check if value is valid
|
// check if value is valid
|
||||||
if (value && props.validate && !props.validate(value)) {
|
if (value && props.validate && !props.validate(value)) {
|
||||||
error.value = props.errorMessage(value)
|
error.value = props.errorMessage(value)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// add value to values array
|
// add value to values array
|
||||||
values.value.push(value)
|
if (!values.value) {
|
||||||
|
values.value = [value]
|
||||||
|
} else {
|
||||||
|
values.value.push(value)
|
||||||
|
}
|
||||||
value = value.replace(value, '')
|
value = value.replace(value, '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user