Move Library "search settings" to LibrarySettings (#381)
This commit is contained in:
@@ -394,6 +394,7 @@
|
|||||||
"ignore_filters": "Ignore filters when searching"
|
"ignore_filters": "Ignore filters when searching"
|
||||||
},
|
},
|
||||||
"title": {
|
"title": {
|
||||||
|
"search": "Search",
|
||||||
"global_search": "Global Search"
|
"global_search": "Global Search"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ import CollectionsOutlinedBookmarkIcon from '@mui/icons-material/CollectionsBook
|
|||||||
import requestManager from '@/lib/RequestManager';
|
import requestManager from '@/lib/RequestManager';
|
||||||
import { langCodeToName } from '@/util/language';
|
import { langCodeToName } from '@/util/language';
|
||||||
import useLocalStorage from '@/util/useLocalStorage';
|
import useLocalStorage from '@/util/useLocalStorage';
|
||||||
import SearchSettings from '@/screens/settings/SearchSettings';
|
|
||||||
import ListItemLink from '@/components/util/ListItemLink';
|
import ListItemLink from '@/components/util/ListItemLink';
|
||||||
import DarkTheme from '@/components/context/DarkTheme';
|
import DarkTheme from '@/components/context/DarkTheme';
|
||||||
import NavbarContext from '@/components/context/NavbarContext';
|
import NavbarContext from '@/components/context/NavbarContext';
|
||||||
@@ -138,7 +137,6 @@ export default function Settings() {
|
|||||||
<Switch edge="end" checked={darkTheme} onChange={() => setDarkTheme(!darkTheme)} />
|
<Switch edge="end" checked={darkTheme} onChange={() => setDarkTheme(!darkTheme)} />
|
||||||
</ListItemSecondaryAction>
|
</ListItemSecondaryAction>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<SearchSettings />
|
|
||||||
<ListItemButton
|
<ListItemButton
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
handleDialogOpenItemWidth();
|
handleDialogOpenItemWidth();
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import requestManager from '@/lib/RequestManager';
|
|||||||
import makeToast from '@/components/util/Toast';
|
import makeToast from '@/components/util/Toast';
|
||||||
import ThreeStateCheckboxInput from '@/components/atoms/ThreeStateCheckboxInput';
|
import ThreeStateCheckboxInput from '@/components/atoms/ThreeStateCheckboxInput';
|
||||||
import NavbarContext from '@/components/context/NavbarContext';
|
import NavbarContext from '@/components/context/NavbarContext';
|
||||||
|
import SearchSettings from '@/screens/settings/SearchSettings';
|
||||||
|
|
||||||
const CategoriesDiv = styled('div')({
|
const CategoriesDiv = styled('div')({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -138,6 +139,15 @@ export default function LibrarySettings() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<List
|
||||||
|
subheader={
|
||||||
|
<ListSubheader component="div" id="nested-list-subheader">
|
||||||
|
{t('search.title.search')}
|
||||||
|
</ListSubheader>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<SearchSettings />
|
||||||
|
</List>
|
||||||
<List
|
<List
|
||||||
subheader={
|
subheader={
|
||||||
<ListSubheader component="div" id="nested-list-subheader">
|
<ListSubheader component="div" id="nested-list-subheader">
|
||||||
|
|||||||
Reference in New Issue
Block a user