Reuse common dateStyle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user