feat: . shortcut to show new items (#2612)

This commit is contained in:
patak 2024-02-24 15:46:54 +01:00 committed by GitHub
parent 082650d458
commit 3769176eaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 2 deletions

View file

@ -174,7 +174,7 @@ const { formatNumber } = useHumanReadableNumber()
:virtualScroller="virtualScroller"
>
<template #updater="{ number, update }">
<button py-4 border="b base" flex="~ col" p-3 w-full text-primary font-bold @click="() => { update(); clearNotifications() }">
<button id="elk_show_new_items" py-4 border="b base" flex="~ col" p-3 w-full text-primary font-bold @click="() => { update(); clearNotifications() }">
{{ $t('timeline.show_new_items', number, { named: { v: formatNumber(number) } }) }}
</button>
</template>