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

Mobile: Fixes #244: When accessing configuration or encrypt configuration option while making a note and the going back, the note gets erased

This commit is contained in:
Laurent Cozic
2018-02-21 22:08:34 +00:00
parent 14a93a9f26
commit 71aa841265
4 changed files with 59 additions and 25 deletions

View File

@ -4,6 +4,7 @@ const { Platform, View, Text, Button, StyleSheet, TouchableOpacity, Image, Scrol
const Icon = require('react-native-vector-icons/Ionicons').default;
const { Log } = require('lib/log.js');
const { BackButtonService } = require('lib/services/back-button.js');
const NavService = require('lib/services/NavService.js');
const { ReportService } = require('lib/services/report.js');
const { Menu, MenuOptions, MenuOption, MenuTrigger } = require('react-native-popup-menu');
const { _ } = require('lib/locale.js');
@ -160,10 +161,7 @@ class ScreenHeaderComponent extends Component {
}
searchButton_press() {
this.props.dispatch({
type: 'NAV_GO',
routeName: 'Search',
});
NavService.go('Search');
}
async deleteButton_press() {
@ -184,38 +182,23 @@ class ScreenHeaderComponent extends Component {
}
log_press() {
this.props.dispatch({
type: 'NAV_GO',
routeName: 'Log',
});
NavService.go('Log');
}
status_press() {
this.props.dispatch({
type: 'NAV_GO',
routeName: 'Status',
});
NavService.go('Status');
}
config_press() {
this.props.dispatch({
type: 'NAV_GO',
routeName: 'Config',
});
NavService.go('Config');
}
encryptionConfig_press() {
this.props.dispatch({
type: 'NAV_GO',
routeName: 'EncryptionConfig',
});
NavService.go('EncryptionConfig');
}
warningBox_press() {
this.props.dispatch({
type: 'NAV_GO',
routeName: 'EncryptionConfig',
});
NavService.go('EncryptionConfig');
}
async debugReport_press() {