mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
users table show no recent activity if there is none
This commit is contained in:
parent
146dc2b1ee
commit
9d1205acca
1 changed files with 14 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue