1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Fixes #999: Associate new note with default notebook when creating it from Welcome screen

This commit is contained in:
Laurent Cozic 2018-12-07 01:23:36 +01:00
parent d08aaffe41
commit 61a0e43092
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,6 @@ class TagScreenComponent extends BaseScreenComponent {
render() {
let title = tag ? tag.title : '';
// <ActionButton addFolderNoteButtons={true} parentFolderId={this.props.selectedFolderId}></ActionButton>
const { navigate } = this.props.navigation;
return (
<View style={this.styles().screen}>

View File

@ -44,7 +44,7 @@ class WelcomeScreenComponent extends BaseScreenComponent {
<View style={this.rootStyle(this.props.theme).root} >
<ScreenHeader title={_('Welcome')}/>
<Text style={this.styles().message}>{message}</Text>
<ActionButton addFolderNoteButtons={true}/>
<ActionButton addFolderNoteButtons={true} parentFolderId={this.props.selectedFolderId}/>
</View>
);
}
@ -56,6 +56,7 @@ const WelcomeScreen = connect(
return {
folders: state.folders,
theme: state.settings.theme,
selectedFolderId: state.selectedFolderId,
};
}
)(WelcomeScreenComponent)