chore: return the title directly
This commit is contained in:
parent
564f669ed4
commit
95d8cdffe4
1 changed files with 7 additions and 9 deletions
|
@ -98,17 +98,15 @@ const pageTitle = computed(() => {
|
||||||
.find(([key, value]) => dateFrom === value[0] && dateTo === value[1])
|
.find(([key, value]) => dateFrom === value[0] && dateTo === value[1])
|
||||||
?.[0]
|
?.[0]
|
||||||
if (typeof predefinedRange !== 'undefined') {
|
if (typeof predefinedRange !== 'undefined') {
|
||||||
title = t(`input.datepickerRange.ranges.${predefinedRange}`)
|
return 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 title
|
return showAll
|
||||||
|
? t('task.show.titleCurrent')
|
||||||
|
: t('task.show.fromuntil', {
|
||||||
|
from: formatDate(dateFrom, 'PPP'),
|
||||||
|
until: formatDate(dateTo, 'PPP'),
|
||||||
|
})
|
||||||
})
|
})
|
||||||
const tasksSorted = computed(() => {
|
const tasksSorted = computed(() => {
|
||||||
// Sort all tasks to put those with a due date before the ones without a due date, the
|
// Sort all tasks to put those with a due date before the ones without a due date, the
|
||||||
|
|
Loading…
Reference in a new issue