This commit is contained in:
Laurent Cozic committed 2017-05-24 20:11:37 +00:00
1 parent c5584d70a6
commit 276ac0e180
6 files changed
+96 -42

No files matched your search

@@ -36,6 +36,23 @@ class NoteFolderService extends BaseService {
});
}
static openNoteList(folderId) {
return Note.previews(folderId).then((notes) => {
this.dispatch({
type: 'NOTES_UPDATE_ALL',
notes: notes,
});
this.dispatch({
type: 'Navigation/NAVIGATE',
routeName: 'Notes',
folderId: folderId,
});
}).catch((error) => {
Log.warn('Cannot load notes', error);
});
}
}
export { NoteFolderService };