1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed note order in RN

This commit is contained in:
Laurent Cozic
2017-07-15 19:13:31 +01:00
parent 62c9a66c47
commit 93791f1e46
6 changed files with 56 additions and 3 deletions

View File

@ -5,7 +5,14 @@ import { Log } from 'lib/log.js'
class NotesScreenUtils {
static openNoteList(folderId) {
return Note.previews(folderId).then((notes) => {
const state = this.store.getState();
let options = {
orderBy: state.notesOrder.orderBy,
orderByDir: state.notesOrder.orderByDir,
};
return Note.previews(folderId, options).then((notes) => {
this.dispatch({
type: 'NOTES_UPDATE_ALL',
notes: notes,