chore: return the title directly
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2022-02-20 21:22:31 +01:00
parent 564f669ed4
commit 95d8cdffe4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 9 deletions

View File

@ -98,17 +98,15 @@ const pageTitle = computed(() => {
.find(([key, value]) => dateFrom === value[0] && dateTo === value[1])
?.[0]
if (typeof predefinedRange !== 'undefined') {
title = t(`input.datepickerRange.ranges.${predefinedRange}`)
} else {
title = showAll
? t('task.show.titleCurrent')
: t('task.show.fromuntil', {
from: formatDate(dateFrom, 'PPP'),
until: formatDate(dateTo, 'PPP'),
})
return t(`input.datepickerRange.ranges.${predefinedRange}`)
}
return title
return showAll
? t('task.show.titleCurrent')
: t('task.show.fromuntil', {
from: formatDate(dateFrom, 'PPP'),
until: formatDate(dateTo, 'PPP'),
})
})
const tasksSorted = computed(() => {
// Sort all tasks to put those with a due date before the ones without a due date, the