1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Moved more widgets to redux

This commit is contained in:
Laurent Cozic
2017-10-07 23:17:10 +01:00
parent 6f34d717f8
commit dc219141fa
10 changed files with 153 additions and 37 deletions

View File

@ -0,0 +1,16 @@
import { Folder } from 'lib/models/folder.js'
class FoldersScreenUtils {
static async refreshFolders() {
let initialFolders = await Folder.all({ includeConflictFolder: true });
this.dispatch({
type: 'FOLDERS_UPDATE_ALL',
folders: initialFolders,
});
}
}
export { FoldersScreenUtils }