diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-10-18 16:44:09 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-10-18 16:44:09 -0400 |
commit | bc2a20f04e32607f8488a9cecd815647fb43e40e (patch) | |
tree | 1f6105203b71fb5220591f057bf3ed63aac79521 /models/swimlanes.js | |
parent | 2737d6b23f3a0fd2314236a85fbdee536df745a2 (diff) | |
download | wekan-bc2a20f04e32607f8488a9cecd815647fb43e40e.tar.gz wekan-bc2a20f04e32607f8488a9cecd815647fb43e40e.tar.bz2 wekan-bc2a20f04e32607f8488a9cecd815647fb43e40e.zip |
Add Feature: allow user to sort Lists in Board by his own preference, boardadmin can star list
Diffstat (limited to 'models/swimlanes.js')
-rw-r--r-- | models/swimlanes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js index 4cd35574..831f1eff 100644 --- a/models/swimlanes.js +++ b/models/swimlanes.js @@ -174,8 +174,8 @@ Swimlanes.helpers({ }, lists() { - const enabled = Meteor.user().hasShowDesktopDragHandles(); - return enabled ? this.draggableLists() : this.newestLists(); + const enabled = Meteor.user().hasSortBy(); + return enabled ? this.newestLists() : this.draggableLists(); }, newestLists() { // sorted lists from newest to the oldest, by its creation date or its cards' last modification date @@ -185,7 +185,7 @@ Swimlanes.helpers({ swimlaneId: { $in: [this._id, ''] }, archived: false, }, - { sort: { updatedAt: -1 } }, + { sort: { modifiedAt: -1 } }, ); }, draggableLists() { |