1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/ReactNativeClient/lib/folders-screen-utils.js

16 lines
312 B
JavaScript
Raw Normal View History

2017-12-14 20:12:14 +02:00
const Folder = require('lib/models/Folder.js');
2017-07-15 17:54:19 +02:00
class FoldersScreenUtils {
static async refreshFolders() {
let initialFolders = await Folder.all({ includeConflictFolder: true });
2017-10-08 00:17:10 +02:00
2017-07-15 17:54:19 +02:00
this.dispatch({
2017-11-08 23:22:24 +02:00
type: 'FOLDER_UPDATE_ALL',
items: initialFolders,
2017-07-15 17:54:19 +02:00
});
}
}
2017-11-03 02:13:17 +02:00
module.exports = { FoldersScreenUtils };