1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

various changes

This commit is contained in:
Laurent Cozic
2017-07-12 23:32:08 +01:00
parent 74e112fef9
commit d92f1c7eba
9 changed files with 62 additions and 26 deletions

View File

@ -8,6 +8,7 @@ import { ScreenHeader } from 'lib/components/screen-header.js';
import { MenuOption, Text } from 'react-native-popup-menu';
import { _ } from 'lib/locale.js';
import { ActionButton } from 'lib/components/action-button.js';
import DialogBox from 'react-native-dialogbox';
class NotesScreenComponent extends React.Component {
@ -16,6 +17,9 @@ class NotesScreenComponent extends React.Component {
}
deleteFolder_onPress(folderId) {
let ok = confirm(_('Delete notebook?'));
if (!ok) return;
Folder.delete(folderId).then(() => {
this.props.dispatch({
type: 'Navigation/NAVIGATE',