1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-20 23:30:05 +02:00

Status screen

This commit is contained in:
Laurent Cozic
2017-07-10 20:16:59 +01:00
parent 3f50e419da
commit e882c7b339
7 changed files with 95 additions and 4 deletions

View File

@@ -41,6 +41,13 @@ class ScreenHeaderComponent extends Component {
});
}
status_press() {
this.props.dispatch({
type: 'Navigation/NAVIGATE',
routeName: 'Status',
});
}
render() {
let key = 0;
let menuOptionComponents = [];
@@ -61,6 +68,11 @@ class ScreenHeaderComponent extends Component {
<Text>{_('Log')}</Text>
</MenuOption>);
menuOptionComponents.push(
<MenuOption value={() => this.status_press()} key={'menuOption_' + key++}>
<Text>{_('Status')}</Text>
</MenuOption>);
let title = 'title' in this.props && this.props.title !== null ? this.props.title : _(this.props.navState.routeName);
return (