Reuse common dateStyle

This commit is contained in:
2025-08-14 20:20:54 +02:00
parent 24f933fbaa
commit 5146e8e490
7 changed files with 24 additions and 69 deletions
+2 -6
View File
@@ -1,6 +1,7 @@
<script setup lang="ts">
import superjson, { type SuperJSONResult } from 'superjson';
import { useTitleStore } from '~/stores/title';
import { fullDate } from '~~/server/utils/date';
definePageMeta({
middleware: ['admin']
@@ -226,12 +227,7 @@ async function addUser() {
</div>
<p>
Last update:
{{
d(data.updatedAt, {
dateStyle: 'medium',
timeStyle: 'medium'
})
}}
{{ d(data.updatedAt, fullDate) }}
</p>
<VaButtonGroup :loading="pending" :disabled="pending">
<VaButton