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

Mobile: Fixes #10596: remove search bar from plugins screen (#10648)

This commit is contained in:
Siddhant Paritosh Rao
2024-06-25 18:29:41 +05:30
committed by GitHub
parent 1d46adf801
commit 801d36c41f

View File

@@ -830,8 +830,11 @@ class ConfigScreenComponent extends BaseScreenComponent<ConfigScreenProps, Confi
}
let screenHeadingText = _('Configuration');
let showSearchButton = true;
if (currentSectionName) {
screenHeadingText = Setting.sectionNameToLabel(currentSectionName);
showSearchButton = currentSectionName !== 'plugins';
}
return (
@@ -839,7 +842,7 @@ class ConfigScreenComponent extends BaseScreenComponent<ConfigScreenProps, Confi
<ScreenHeader
title={screenHeadingText}
showSaveButton={true}
showSearchButton={true}
showSearchButton={showSearchButton}
showSideMenuButton={false}
saveButtonDisabled={!this.hasUnsavedChanges()}
onSaveButtonPress={this.saveButton_press}