From 0e47cebed5b93039fd29740981fae33be3eae95c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 16 Jan 2022 17:57:19 +0100 Subject: [PATCH] feat(a11y): use

{{ task.title }}

- - {{ $t('task.detail.due', {at: formatDateSince(task.dueDate)}) }} - + diff --git a/src/main.ts b/src/main.ts index ad2cbeca..552e5c3d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,6 +19,7 @@ declare global { } import {formatDate, formatDateShort, formatDateLong, formatDateSince} from '@/helpers/time/formatDate' +import {formatISO} from 'date-fns' // @ts-ignore import {VERSION} from './version.json' @@ -85,6 +86,7 @@ app.mixin({ format: formatDate, formatDate: formatDateLong, formatDateShort: formatDateShort, + formatISO, getNamespaceTitle, getListTitle, setTitle, diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index e2171698..da5203ef 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -386,22 +386,28 @@

- - {{ formatDateSince(task.created) }} - {{ task.createdBy.getDisplayName() }} - +