1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-04-20 11:28:40 +02:00
joplin/ReactNativeClient/lib/folders-screen-utils.js

16 lines
312 B
JavaScript
Raw Normal View History

const Folder = require('lib/models/Folder.js');
2017-07-15 16:54:19 +01:00
class FoldersScreenUtils {
2017-07-15 16:54:19 +01:00
static async refreshFolders() {
let initialFolders = await Folder.all({ includeConflictFolder: true });
2017-10-07 23:17:10 +01:00
2017-07-15 16:54:19 +01:00
this.dispatch({
type: 'FOLDER_UPDATE_ALL',
items: initialFolders,
2017-07-15 16:54:19 +01:00
});
}
2017-07-15 16:54:19 +01:00
}
module.exports = { FoldersScreenUtils };