1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Fixes #9308: Disable notebook list side menu in config screen (#9311)

This commit is contained in:
Henry Heino 2023-11-15 05:31:26 -08:00 committed by GitHub
parent 50925abc40
commit cf19dacbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1032,10 +1032,13 @@ class AppComponent extends React.Component {
let sideMenuContent: ReactNode = null;
let menuPosition: SideMenuPosition = 'left';
let disableSideMenuGestures = this.props.disableSideMenuGestures;
if (this.props.routeName === 'Note') {
sideMenuContent = <SafeAreaView style={{ flex: 1, backgroundColor: theme.backgroundColor }}><SideMenuContentNote options={this.props.noteSideMenuOptions}/></SafeAreaView>;
menuPosition = 'right';
} else if (this.props.routeName === 'Config') {
disableSideMenuGestures = true;
} else {
sideMenuContent = <SafeAreaView style={{ flex: 1, backgroundColor: theme.backgroundColor }}><SideMenuContent/></SafeAreaView>;
}
@ -1076,7 +1079,7 @@ class AppComponent extends React.Component {
openMenuOffset={this.state.sideMenuWidth}
menuPosition={menuPosition}
onChange={(isOpen: boolean) => this.sideMenu_change(isOpen)}
disableGestures={this.props.disableSideMenuGestures}
disableGestures={disableSideMenuGestures}
onSliding={(percent: number) => {
this.props.dispatch({
type: 'SIDE_MENU_OPEN_PERCENT',