Fix task sort parameters
This commit is contained in:
parent
f552b834d6
commit
575b2f28ef
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -55,15 +55,15 @@
|
||||||
</th>
|
</th>
|
||||||
<th v-if="activeColumns.dueDate">
|
<th v-if="activeColumns.dueDate">
|
||||||
Due Date
|
Due 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 Date
|
Start 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 Date
|
End 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">
|
||||||
% Done
|
% Done
|
||||||
|
|
Loading…
Reference in a new issue