1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-05-19 22:03:06 +02:00
joplin/ReactNativeClient/lib/folders-screen-utils.js

16 lines
302 B
JavaScript
Raw Normal View History

2017-07-15 16:54:19 +01:00
import { Folder } from 'lib/models/folder.js'
class FoldersScreenUtils {
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: 'FOLDERS_UPDATE_ALL',
folders: initialFolders,
});
}
}
export { FoldersScreenUtils }