Показан последний отправитель в группе писем
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 dateDisplay = computed(() => formatMessageDate(props.thread.latest.date))
|
||||
|
||||
const participantNames = computed(() => {
|
||||
return props.thread.participants
|
||||
.slice(0, 3)
|
||||
.map((p) => p.name || p.email.split('@')[0])
|
||||
.join(', ')
|
||||
})
|
||||
const senderDisplay = computed<string>(() =>
|
||||
props.thread.latest.from.name || props.thread.latest.from.email || 'Неизвестно'
|
||||
)
|
||||
|
||||
const normalizedSubject = computed(() => {
|
||||
// Убираем Re:/Fwd: для отображения
|
||||
|
|
@ -69,10 +66,10 @@ const snippet = computed(() => props.thread.latest.snippet || '')
|
|||
|
||||
<!-- Основной контент -->
|
||||
<div class="thread-content">
|
||||
<!-- Строка 1: участники + дата -->
|
||||
<!-- Строка 1: последний отправитель и дата -->
|
||||
<div class="thread-row1">
|
||||
<span class="thread-participants" :class="{ bold: isUnread }">
|
||||
{{ participantNames }}
|
||||
<span class="thread-participants" :class="{ bold: isUnread }" v-tooltip="senderDisplay">
|
||||
{{ senderDisplay }}
|
||||
</span>
|
||||
<div class="thread-meta">
|
||||
<AgentDecisionBadge :decision="agentDecision" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue