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

pull/10658/head
Siddhant Paritosh Rao 2024-06-25 18:29:41 +05:30 committed by GitHub
parent 1d46adf801
commit 801d36c41f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

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}