mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #6620 from viown/replace-switches-checkbox
Replace switches with checkboxes
This commit is contained in:
commit
da0cf958d3
4 changed files with 15 additions and 15 deletions
|
@ -7,7 +7,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
|
|||
import FormHelperText from '@mui/material/FormHelperText';
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Switch from '@mui/material/Switch';
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
import TextField from '@mui/material/TextField';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import Loading from 'components/loading/LoadingComponent';
|
||||
|
@ -111,7 +111,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'DisplayFolderView'}
|
||||
defaultChecked={config.EnableFolderView}
|
||||
/>
|
||||
|
@ -124,7 +124,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'DisplaySpecialsWithinSeasons'}
|
||||
defaultChecked={config.DisplaySpecialsWithinSeasons}
|
||||
/>
|
||||
|
@ -136,7 +136,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'GroupMoviesIntoCollections'}
|
||||
defaultChecked={config.EnableGroupingIntoCollections}
|
||||
/>
|
||||
|
@ -149,7 +149,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'EnableExternalContentInSuggestions'}
|
||||
defaultChecked={config.EnableExternalContentInSuggestions}
|
||||
/>
|
||||
|
|
|
@ -7,7 +7,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
|
|||
import FormHelperText from '@mui/material/FormHelperText';
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Switch from '@mui/material/Switch';
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
import TextField from '@mui/material/TextField';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import Loading from 'components/loading/LoadingComponent';
|
||||
|
@ -136,7 +136,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'SaveImagePathsInNfo'}
|
||||
defaultChecked={nfoConfig.SaveImagePathsInNfo}
|
||||
/>
|
||||
|
@ -149,7 +149,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'EnablePathSubstitution'}
|
||||
defaultChecked={nfoConfig.EnablePathSubstitution}
|
||||
/>
|
||||
|
@ -162,7 +162,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name={'EnableExtraThumbsDuplication'}
|
||||
defaultChecked={nfoConfig.EnableExtraThumbsDuplication}
|
||||
/>
|
||||
|
|
|
@ -8,7 +8,7 @@ import Box from '@mui/material/Box';
|
|||
import Button from '@mui/material/Button';
|
||||
import FormControlLabel from '@mui/material/FormControlLabel';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Switch from '@mui/material/Switch';
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
import TextField from '@mui/material/TextField';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import { type ActionFunctionArgs, Form, useActionData, useNavigation } from 'react-router-dom';
|
||||
|
@ -98,7 +98,7 @@ export const Component = () => {
|
|||
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
checked={configuration?.EnableSlowResponseWarning}
|
||||
onChange={setLogWarningMessage}
|
||||
name={'EnableWarningMessage'}
|
||||
|
|
|
@ -9,7 +9,7 @@ import Stack from '@mui/material/Stack';
|
|||
import Typography from '@mui/material/Typography';
|
||||
import FormControlLabel from '@mui/material/FormControlLabel';
|
||||
import FormControl from '@mui/material/FormControl';
|
||||
import Switch from '@mui/material/Switch';
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
import Loading from 'components/loading/LoadingComponent';
|
||||
import FormHelperText from '@mui/material/FormHelperText';
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
|
@ -92,7 +92,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name='HwAcceleration'
|
||||
defaultChecked={defaultConfig.TrickplayOptions?.EnableHwAcceleration}
|
||||
/>
|
||||
|
@ -104,7 +104,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name='HwEncoding'
|
||||
defaultChecked={defaultConfig.TrickplayOptions?.EnableHwEncoding}
|
||||
/>
|
||||
|
@ -117,7 +117,7 @@ export const Component = () => {
|
|||
<FormControl>
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Switch
|
||||
<Checkbox
|
||||
name='KeyFrameOnlyExtraction'
|
||||
defaultChecked={defaultConfig.TrickplayOptions?.EnableKeyFrameOnlyExtraction}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue