fix: lint

This commit is contained in:
kolaente 2021-12-29 21:33:55 +01:00
parent 294e89b6f7
commit 0710cea9e5
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 3 additions and 4 deletions

View file

@ -79,7 +79,6 @@ const flatPickerConfig = computed(() => ({
}, },
})) }))
const showPopup = ref<Boolean>(false)
const dateRange = ref<string>('') const dateRange = ref<string>('')
watch( watch(
@ -99,7 +98,7 @@ watch(
dateFrom: new Date(fromDate), dateFrom: new Date(fromDate),
dateTo: new Date(toDate), dateTo: new Date(toDate),
}) })
} },
) )
function formatDate(date: Date): string { function formatDate(date: Date): string {

View file

@ -104,7 +104,7 @@ export default {
? this.$t('task.show.titleCurrent') ? this.$t('task.show.titleCurrent')
: this.$t('task.show.fromuntil', { : this.$t('task.show.fromuntil', {
from: this.format(this.dateFrom, 'PPP'), from: this.format(this.dateFrom, 'PPP'),
until: this.format(this.dateTo, 'PPP') until: this.format(this.dateTo, 'PPP'),
}) })
this.setTitle(title) this.setTitle(title)
@ -116,7 +116,7 @@ export default {
// soonest before the later ones. // soonest before the later ones.
// We can't use the api sorting here because that sorts tasks with a due date after // We can't use the api sorting here because that sorts tasks with a due date after
// ones without a due date. // ones without a due date.
return this.tasks.sort((a, b) => { return [...this.tasks].sort((a, b) => {
const sortByDueDate = b.dueDate - a.dueDate const sortByDueDate = b.dueDate - a.dueDate
return sortByDueDate === 0 return sortByDueDate === 0
? b.id - a.id ? b.id - a.id