1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +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

@ -5,6 +5,7 @@ import { Log } from 'lib/log.js'
import { Folder } from 'lib/models/folder.js'
import { BaseModel } from 'lib/base-model.js'
import { ScreenHeader } from 'lib/components/screen-header.js';
import { NotesScreenUtils } from 'lib/components/screens/notes-utils.js'
class FolderScreenComponent extends React.Component {
@ -51,11 +52,7 @@ class FolderScreenComponent extends React.Component {
this.originalFolder = await Folder.save(toSave);
this.setState({ folder: this.originalFolder });
this.props.dispatch({
type: 'Navigation/NAVIGATE',
routeName: 'Notes',
folderId: toSave.id,
});
await NotesScreenUtils.openDefaultNoteList();
}
render() {