Fix task sort parameters

This commit is contained in:
kolaente 2020-04-14 21:54:27 +02:00
parent f552b834d6
commit 575b2f28ef
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@
}, },
methods: { methods: {
loadPendingTasks() { loadPendingTasks() {
let params = {sort_by: ['dueDate_unix', 'id'], order_by: ['desc', 'desc']} let params = {sort_by: ['due_date_unix', 'id'], order_by: ['desc', 'desc']}
if (!this.showAll) { if (!this.showAll) {
params.startdate = Math.round(+ this.startDate / 1000) params.startdate = Math.round(+ this.startDate / 1000)
params.enddate = Math.round(+ this.endDate / 1000) params.enddate = Math.round(+ this.endDate / 1000)

View file

@ -55,15 +55,15 @@
</th> </th>
<th v-if="activeColumns.dueDate"> <th v-if="activeColumns.dueDate">
Due&nbsp;Date Due&nbsp;Date
<sort :order="sortBy.dueDate_unix" @click="sort('dueDate_unix')"/> <sort :order="sortBy.due_date_unix" @click="sort('due_date_unix')"/>
</th> </th>
<th v-if="activeColumns.startDate"> <th v-if="activeColumns.startDate">
Start&nbsp;Date Start&nbsp;Date
<sort :order="sortBy.startDate_unix" @click="sort('startDate_unix')"/> <sort :order="sortBy.start_date_unix" @click="sort('start_date_unix')"/>
</th> </th>
<th v-if="activeColumns.endDate"> <th v-if="activeColumns.endDate">
End&nbsp;Date End&nbsp;Date
<sort :order="sortBy.endDate_unix" @click="sort('endDate_unix')"/> <sort :order="sortBy.end_date_unix" @click="sort('end_date_unix')"/>
</th> </th>
<th v-if="activeColumns.percentDone"> <th v-if="activeColumns.percentDone">
%&nbsp;Done %&nbsp;Done