Skip to content

Commit

Permalink
fix(documents): Hide document keyword setting when documents are disa…
Browse files Browse the repository at this point in the history
…bled.
  • Loading branch information
sampie777 committed Feb 7, 2022
1 parent ed2f623 commit 1ee9d36
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/screens/Settings/SettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,13 @@ const SettingsScreen: React.FC = () => {
<Header title={"Other"} />
<SettingSwitchComponent title={"Clear search after adding song to song list"}
keyName={"clearSearchAfterAddedToSongList"} />
<SettingSwitchComponent title={"Multi keyword search for documents"}
description={"When enabled, each keyword will be matched individually instead of " +
"the whole search phrase. This will yield more results."}
keyName={"documentsMultiKeywordSearch"}
isVisible={showAdvancedSettings} />
{!Settings.enableDocumentsFeatureSwitch ? undefined :
<SettingSwitchComponent title={"Multi keyword search for documents"}
description={"When enabled, each keyword will be matched individually instead of " +
"the whole search phrase. This will yield more results."}
keyName={"documentsMultiKeywordSearch"}
isVisible={showAdvancedSettings} />
}

<Header title={"Backend"} isVisible={showAdvancedSettings} />
<SettingSwitchComponent title={"Use authentication with backend"}
Expand Down

0 comments on commit 1ee9d36

Please sign in to comment.