You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
First pass at linting lib dir
This commit is contained in:
@@ -2,17 +2,22 @@ const Folder = require('lib/models/Folder.js');
|
||||
const Setting = require('lib/models/Setting.js');
|
||||
|
||||
class FoldersScreenUtils {
|
||||
|
||||
static async allForDisplay(options = {}) {
|
||||
const orderDir = Setting.value('folders.sortOrder.reverse') ? 'DESC' : 'ASC';
|
||||
|
||||
const folderOptions = Object.assign({}, {
|
||||
caseInsensitive: true,
|
||||
order: [{
|
||||
by: 'title',
|
||||
dir: orderDir,
|
||||
}]
|
||||
}, options);
|
||||
const folderOptions = Object.assign(
|
||||
{},
|
||||
{
|
||||
caseInsensitive: true,
|
||||
order: [
|
||||
{
|
||||
by: 'title',
|
||||
dir: orderDir,
|
||||
},
|
||||
],
|
||||
},
|
||||
options
|
||||
);
|
||||
|
||||
let folders = await Folder.all(folderOptions);
|
||||
|
||||
@@ -40,7 +45,6 @@ class FoldersScreenUtils {
|
||||
this.refreshFolders();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = { FoldersScreenUtils };
|
||||
module.exports = { FoldersScreenUtils };
|
||||
|
||||
Reference in New Issue
Block a user