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])
|
||||
?.[0]
|
||||
if (typeof predefinedRange !== 'undefined') {
|
||||
title = t(`input.datepickerRange.ranges.${predefinedRange}`)
|
||||
} else {
|
||||
title = showAll
|
||||
return t(`input.datepickerRange.ranges.${predefinedRange}`)
|
||||
}
|
||||
|
||||
return showAll
|
||||
? t('task.show.titleCurrent')
|
||||
: t('task.show.fromuntil', {
|
||||
from: formatDate(dateFrom, 'PPP'),
|
||||
until: formatDate(dateTo, 'PPP'),
|
||||
})
|
||||
}
|
||||
|
||||
return title
|
||||
})
|
||||
const tasksSorted = computed(() => {
|
||||
// Sort all tasks to put those with a due date before the ones without a due date, the
|
||||
|
|
Loading…
Reference in a new issue