Показан последний отправитель в группе писем
Some checks failed
Release / release (push) Failing after 31s
Some checks failed
Release / release (push) Failing after 31s
This commit is contained in:
parent
aa55838d18
commit
ccbd004416
1 changed files with 6 additions and 9 deletions
|
|
@ -28,12 +28,9 @@ const agentDecision = computed(() => getThreadAgentDecision(props.thread.message
|
||||||
const isUnread = computed(() => props.thread.unreadCount > 0)
|
const isUnread = computed(() => props.thread.unreadCount > 0)
|
||||||
const dateDisplay = computed(() => formatMessageDate(props.thread.latest.date))
|
const dateDisplay = computed(() => formatMessageDate(props.thread.latest.date))
|
||||||
|
|
||||||
const participantNames = computed(() => {
|
const senderDisplay = computed<string>(() =>
|
||||||
return props.thread.participants
|
props.thread.latest.from.name || props.thread.latest.from.email || 'Неизвестно'
|
||||||
.slice(0, 3)
|
)
|
||||||
.map((p) => p.name || p.email.split('@')[0])
|
|
||||||
.join(', ')
|
|
||||||
})
|
|
||||||
|
|
||||||
const normalizedSubject = computed(() => {
|
const normalizedSubject = computed(() => {
|
||||||
// Убираем Re:/Fwd: для отображения
|
// Убираем Re:/Fwd: для отображения
|
||||||
|
|
@ -69,10 +66,10 @@ const snippet = computed(() => props.thread.latest.snippet || '')
|
||||||
|
|
||||||
<!-- Основной контент -->
|
<!-- Основной контент -->
|
||||||
<div class="thread-content">
|
<div class="thread-content">
|
||||||
<!-- Строка 1: участники + дата -->
|
<!-- Строка 1: последний отправитель и дата -->
|
||||||
<div class="thread-row1">
|
<div class="thread-row1">
|
||||||
<span class="thread-participants" :class="{ bold: isUnread }">
|
<span class="thread-participants" :class="{ bold: isUnread }" v-tooltip="senderDisplay">
|
||||||
{{ participantNames }}
|
{{ senderDisplay }}
|
||||||
</span>
|
</span>
|
||||||
<div class="thread-meta">
|
<div class="thread-meta">
|
||||||
<AgentDecisionBadge :decision="agentDecision" />
|
<AgentDecisionBadge :decision="agentDecision" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue