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

Various RN changes

This commit is contained in:
Laurent Cozic
2017-07-13 00:01:15 +01:00
parent d92f1c7eba
commit bde42a80b6
7 changed files with 64 additions and 20 deletions

View File

@ -1,4 +1,5 @@
import { Note } from 'lib/models/note.js'
import { Folder } from 'lib/models/folder.js'
import { Log } from 'lib/log.js'
class NotesScreenUtils {
@ -20,6 +21,18 @@ class NotesScreenUtils {
});
}
static async openDefaultNoteList() {
const selectedFolder = await Folder.defaultFolder();
if (selectedFolder) {
this.openNoteList(selectedFolder.id);
} else {
this.dispatch({
type: 'Navigation/NAVIGATE',
routeName: 'Loading',
});
}
}
}
export { NotesScreenUtils }