1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-21 14:19:44 +02:00

feat: Add tasks reordering

Closes #50, closes #232
This commit is contained in:
Maksim Eltyshev 2022-07-21 11:31:05 +02:00
parent a6a836c9a0
commit f8f2d7345e
27 changed files with 341 additions and 94 deletions

View file

@ -206,7 +206,7 @@ export default class extends Model {
}
getOrderedTasksQuerySet() {
return this.tasks.orderBy('id');
return this.tasks.orderBy('position');
}
getOrderedAttachmentsQuerySet() {

View file

@ -7,6 +7,7 @@ export default class extends Model {
static fields = {
id: attr(),
position: attr(),
name: attr(),
isCompleted: attr({
getDefault: () => false,