1
0

feat: convert to composable useDateTimeSalutation

This commit is contained in:
Dominik Pschenitschni
2022-01-04 17:54:00 +01:00
committed by Gitea
parent d2577f1df6
commit cb37fd773d
3 changed files with 15 additions and 14 deletions

View File

@ -66,16 +66,15 @@ import AddTask from '@/components/tasks/add-task.vue'
import {getHistory} from '@/modules/listHistory'
import {parseDateOrNull} from '@/helpers/parseDateOrNull'
import {formatDateShort, formatDateSince} from '@/helpers/time/formatDate'
import {hourToSalutation} from '@/helpers/hourToSalutation'
import {useDateTimeSalutation} from '@/composables/useDateTimeSalutation'
const welcome = computed(hourToSalutation)
const welcome = useDateTimeSalutation()
const store = useStore()
const listHistory = computed(() => {
const history = getHistory()
return history.map(l => {
return store.getters['lists/getListById'](l.id)
}).filter(l => l !== null)
return getHistory()
.map(l => store.getters['lists/getListById'](l.id))
.filter(l => l !== null)
})