summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar
diff options
context:
space:
mode:
authorboeserwolf <github@noxware.de>2020-04-19 12:30:21 +0300
committerboeserwolf <github@noxware.de>2020-04-19 13:49:07 +0300
commit10fcc19b7f9307e71f01b6abca055806d69f7d4e (patch)
treee236eb00f9b72ca67b0113f49d45803eccd55477 /client/components/sidebar
parent9f396e9038712e0223cbd47b7bc14253610f9af9 (diff)
downloadwekan-10fcc19b7f9307e71f01b6abca055806d69f7d4e.tar.gz
wekan-10fcc19b7f9307e71f01b6abca055806d69f7d4e.tar.bz2
wekan-10fcc19b7f9307e71f01b6abca055806d69f7d4e.zip
Add sortDefault helper for sorting boards
Diffstat (limited to 'client/components/sidebar')
-rw-r--r--client/components/sidebar/sidebar.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index 78b47a48..11471c2f 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -510,7 +510,7 @@ BlazeComponent.extendComponent({
'members.userId': Meteor.userId(),
},
{
- sort: ['title'],
+ sort: { sort: 1 /* boards default sorting */ },
},
);
},
@@ -589,7 +589,7 @@ BlazeComponent.extendComponent({
'subtext-with-parent',
'no-parent',
];
- options.forEach(function (element) {
+ options.forEach(function(element) {
if (element !== value) {
$(`#${element} ${MCB}`).toggleClass(CKCLS, false);
$(`#${element}`).toggleClass(CKCLS, false);
@@ -688,7 +688,7 @@ BlazeComponent.extendComponent({
'members.userId': Meteor.userId(),
},
{
- sort: ['title'],
+ sort: { sort: 1 /* boards default sorting */ },
},
);
},