1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-14 23:26:58 +02:00

Mobile: Adding note side menu

This commit is contained in:
Laurent Cozic
2019-07-11 17:43:55 +01:00
parent 554ddb3b51
commit cab73a26e7
3 changed files with 141 additions and 2 deletions

View File

@@ -186,6 +186,7 @@ class NoteScreenComponent extends BaseScreenComponent {
this.cameraView_onPhoto = this.cameraView_onPhoto.bind(this);
this.cameraView_onCancel = this.cameraView_onCancel.bind(this);
this.onMarkForDownload = this.onMarkForDownload.bind(this);
this.menuOptions = this.menuOptions.bind(this);
}
styles() {
@@ -273,6 +274,13 @@ class NoteScreenComponent extends BaseScreenComponent {
}
}
componentDidMount() {
this.props.dispatch({
type: 'NOTE_SIDE_MENU_OPTIONS_SET',
options: this.menuOptions,
});
}
componentWillUnmount() {
BackButtonService.removeHandler(this.backHandler);
NavService.removeHandler(this.navHandler);