1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Started config screen

This commit is contained in:
Laurent Cozic
2017-07-23 19:26:50 +01:00
parent d05c62f69f
commit 04cd9a1e7b
7 changed files with 206 additions and 11 deletions

View File

@ -20,6 +20,7 @@ import { ItemList } from 'lib/components/item-list.js'
import { NotesScreen } from 'lib/components/screens/notes.js'
import { NotesScreenUtils } from 'lib/components/screens/notes-utils.js'
import { NoteScreen } from 'lib/components/screens/note.js'
import { ConfigScreen } from 'lib/components/screens/config.js'
import { FolderScreen } from 'lib/components/screens/folder.js'
import { FoldersScreen } from 'lib/components/screens/folders.js'
import { LogScreen } from 'lib/components/screens/log.js'
@ -409,6 +410,11 @@ async function initialize(dispatch, backButtonHandler) {
let folderId = Setting.value('activeFolderId');
let folder = await Folder.load(folderId);
// dispatch({
// type: 'Navigation/NAVIGATE',
// routeName: 'Config',
// });
if (folder) {
await NotesScreenUtils.openNoteList(folderId);
} else {
@ -490,6 +496,7 @@ class AppComponent extends React.Component {
Log: { screen: LogScreen },
Status: { screen: StatusScreen },
Search: { screen: SearchScreen },
Config: { screen: ConfigScreen },
};
return (