Show explicit datetime in email eventlog

This commit is contained in:
Johannes Zellner
2025-07-10 16:29:48 +02:00
parent 4029b94ff2
commit daddbadc06

View File

@@ -1,8 +1,9 @@
<script setup>
import { ref, reactive, onMounted, watch } from 'vue';
import moment from 'moment';
import { Button, TextInput, MultiSelect } from '@cloudron/pankow';
import { useDebouncedRef, prettyDate, prettyLongDate, prettyEmailAddresses } from '@cloudron/pankow/utils';
import { useDebouncedRef, prettyEmailAddresses } from '@cloudron/pankow/utils';
import MailModel from '../models/MailModel.js';
const mailModel = MailModel.create();
@@ -83,8 +84,9 @@ onMounted(async () => {
<thead>
<tr>
<th style="width: 5%"><!-- Icon --></th>
<th style="width: 15%">{{ $t('emails.eventlog.time') }}</th>
<th style="width: 25%">{{ $t('emails.eventlog.mailFrom') }}</th>
<th style="width: 7%">{{ $t('emails.eventlog.time') }}</th>
<th style="width: 7%"></th>
<th style="width: 26%">{{ $t('emails.eventlog.mailFrom') }}</th>
<th style="width: 25%">{{ $t('emails.eventlog.rcptTo') }}</th>
<th style="width: 30%">{{ $t('emails.eventlog.details') }}</th>
</tr>
@@ -103,7 +105,8 @@ onMounted(async () => {
<i class="fas fa-filter" v-if="eventlog.type === 'spam-learn'" v-tooltip="$t('emails.eventlog.type.spamFilterTrained')"></i>
<i class="fas fa-fill-drip" v-if="eventlog.type === 'quota'" v-tooltip="$t('emails.eventlog.type.quota')"></i>
</td>
<td class="no-wrap"><span v-tooltip="prettyLongDate(eventlog.ts)" class="arrow">{{ prettyDate(eventlog.ts) }}</span></td>
<td class="no-wrap">{{ moment(eventlog.ts).format('DD.MM.YYYY') }}</td>
<td class="no-wrap">{{ moment(eventlog.ts).format('HH:mm:SS') }}</td>
<td class="elide-table-cell">{{ prettyEmailAddresses(eventlog.mailFrom) || '-' }}</td>
<td class="elide-table-cell">{{ prettyEmailAddresses(eventlog.rcptTo) || eventlog.mailbox || '-' }}</td>
<td>