You've already forked joplin
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:
@ -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 }
|
Reference in New Issue
Block a user