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

Mobile: Edit and delete notebooks by long-pressing them, and removed context menu on note lists

This commit is contained in:
Laurent Cozic
2019-06-26 18:28:09 +01:00
parent e7e0264411
commit d96c58d192
3 changed files with 61 additions and 7 deletions

View File

@ -385,7 +385,7 @@ class ScreenHeaderComponent extends Component {
const sortButtonComp = this.props.sortButton_press ? sortButton(this.styles(), () => this.props.sortButton_press()) : null;
const windowHeight = Dimensions.get('window').height - 50;
const menuComp = !showContextMenuButton ? null : (
const menuComp = !menuOptionComponents.length || !showContextMenuButton ? null : (
<Menu onSelect={(value) => this.menu_select(value)} style={this.styles().contextMenu}>
<MenuTrigger style={{ paddingTop: PADDING_V, paddingBottom: PADDING_V }}>
<Icon name='md-more' style={this.styles().contextMenuTrigger} />