-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search by Category Including Subcategory
- Added a new option switch to have the category autocomplete match on category group names
- Loading branch information
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/desktop-client/src/components/settings/Autocomplete.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
|
||
import { useLocalPref } from '../../hooks/useLocalPref'; | ||
import { Text } from '../common/Text'; | ||
import { Checkbox } from '../forms'; | ||
|
||
import { Setting } from './UI'; | ||
|
||
export function AutocompleteSettings() { | ||
const [ | ||
autocompleteCategoryMatchGroup = false, | ||
setAutocompleteCategoryMatchGroupPref, | ||
] = useLocalPref('autocompleteCategoryMatchGroup'); | ||
|
||
return ( | ||
<Setting | ||
primaryAction={ | ||
<Text style={{ display: 'flex' }}> | ||
<Checkbox | ||
id="settings-autocompleteCategoryMatchGroup" | ||
checked={!!autocompleteCategoryMatchGroup} | ||
onChange={e => | ||
setAutocompleteCategoryMatchGroupPref(e.currentTarget.checked) | ||
} | ||
/> | ||
<label htmlFor="settings-autocompleteCategoryMatchGroup"> | ||
Category autocomplete search match on category group names | ||
</label> | ||
</Text> | ||
} | ||
> | ||
<Text> | ||
<strong>Autocomplete</strong> change the behavior of the autocomplete | ||
dropdowns. | ||
</Text> | ||
</Setting> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
category: Enhancements | ||
authors: [Wizmaster] | ||
--- | ||
Add option to have the Category autocomplete match on Category Group names |