users table show no recent activity if there is none

This commit is contained in:
Gauthier Roebroeck 2025-07-11 10:10:24 +08:00
parent 146dc2b1ee
commit 9d1205acca

View file

@ -57,7 +57,19 @@
</template>
<template #[`item.activity`]="{ value }">
{{ $formatDate(value, { dateStyle: 'medium', timeStyle: 'short' }) }}
<template v-if="value"
>{{ $formatDate(value, { dateStyle: 'medium', timeStyle: 'short' }) }}
</template>
<template v-else
>{{
$formatMessage({
description:
'Shown in users table when there is no recent authentication activity for the user',
defaultMessage: 'No recent activity',
id: 'CvsH7/',
})
}}
</template>
</template>
<template #[`item.actions`]="{ item: user }">
@ -188,6 +200,7 @@ watch(
getLatestActivity(user.id)
}
},
{ immediate: true },
)
const messages = {