1
0
Fork 0
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:
Bill Thornton 2025-03-21 12:57:15 -04:00 committed by GitHub
commit da0cf958d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 15 deletions

View file

@ -7,7 +7,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import FormHelperText from '@mui/material/FormHelperText'; import FormHelperText from '@mui/material/FormHelperText';
import MenuItem from '@mui/material/MenuItem'; import MenuItem from '@mui/material/MenuItem';
import Stack from '@mui/material/Stack'; 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 TextField from '@mui/material/TextField';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Loading from 'components/loading/LoadingComponent'; import Loading from 'components/loading/LoadingComponent';
@ -111,7 +111,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'DisplayFolderView'} name={'DisplayFolderView'}
defaultChecked={config.EnableFolderView} defaultChecked={config.EnableFolderView}
/> />
@ -124,7 +124,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'DisplaySpecialsWithinSeasons'} name={'DisplaySpecialsWithinSeasons'}
defaultChecked={config.DisplaySpecialsWithinSeasons} defaultChecked={config.DisplaySpecialsWithinSeasons}
/> />
@ -136,7 +136,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'GroupMoviesIntoCollections'} name={'GroupMoviesIntoCollections'}
defaultChecked={config.EnableGroupingIntoCollections} defaultChecked={config.EnableGroupingIntoCollections}
/> />
@ -149,7 +149,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'EnableExternalContentInSuggestions'} name={'EnableExternalContentInSuggestions'}
defaultChecked={config.EnableExternalContentInSuggestions} defaultChecked={config.EnableExternalContentInSuggestions}
/> />

View file

@ -7,7 +7,7 @@ import FormControlLabel from '@mui/material/FormControlLabel';
import FormHelperText from '@mui/material/FormHelperText'; import FormHelperText from '@mui/material/FormHelperText';
import MenuItem from '@mui/material/MenuItem'; import MenuItem from '@mui/material/MenuItem';
import Stack from '@mui/material/Stack'; 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 TextField from '@mui/material/TextField';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import Loading from 'components/loading/LoadingComponent'; import Loading from 'components/loading/LoadingComponent';
@ -136,7 +136,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'SaveImagePathsInNfo'} name={'SaveImagePathsInNfo'}
defaultChecked={nfoConfig.SaveImagePathsInNfo} defaultChecked={nfoConfig.SaveImagePathsInNfo}
/> />
@ -149,7 +149,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'EnablePathSubstitution'} name={'EnablePathSubstitution'}
defaultChecked={nfoConfig.EnablePathSubstitution} defaultChecked={nfoConfig.EnablePathSubstitution}
/> />
@ -162,7 +162,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name={'EnableExtraThumbsDuplication'} name={'EnableExtraThumbsDuplication'}
defaultChecked={nfoConfig.EnableExtraThumbsDuplication} defaultChecked={nfoConfig.EnableExtraThumbsDuplication}
/> />

View file

@ -8,7 +8,7 @@ import Box from '@mui/material/Box';
import Button from '@mui/material/Button'; import Button from '@mui/material/Button';
import FormControlLabel from '@mui/material/FormControlLabel'; import FormControlLabel from '@mui/material/FormControlLabel';
import Stack from '@mui/material/Stack'; 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 TextField from '@mui/material/TextField';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import { type ActionFunctionArgs, Form, useActionData, useNavigation } from 'react-router-dom'; import { type ActionFunctionArgs, Form, useActionData, useNavigation } from 'react-router-dom';
@ -98,7 +98,7 @@ export const Component = () => {
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
checked={configuration?.EnableSlowResponseWarning} checked={configuration?.EnableSlowResponseWarning}
onChange={setLogWarningMessage} onChange={setLogWarningMessage}
name={'EnableWarningMessage'} name={'EnableWarningMessage'}

View file

@ -9,7 +9,7 @@ import Stack from '@mui/material/Stack';
import Typography from '@mui/material/Typography'; import Typography from '@mui/material/Typography';
import FormControlLabel from '@mui/material/FormControlLabel'; import FormControlLabel from '@mui/material/FormControlLabel';
import FormControl from '@mui/material/FormControl'; 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 Loading from 'components/loading/LoadingComponent';
import FormHelperText from '@mui/material/FormHelperText'; import FormHelperText from '@mui/material/FormHelperText';
import MenuItem from '@mui/material/MenuItem'; import MenuItem from '@mui/material/MenuItem';
@ -92,7 +92,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name='HwAcceleration' name='HwAcceleration'
defaultChecked={defaultConfig.TrickplayOptions?.EnableHwAcceleration} defaultChecked={defaultConfig.TrickplayOptions?.EnableHwAcceleration}
/> />
@ -104,7 +104,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name='HwEncoding' name='HwEncoding'
defaultChecked={defaultConfig.TrickplayOptions?.EnableHwEncoding} defaultChecked={defaultConfig.TrickplayOptions?.EnableHwEncoding}
/> />
@ -117,7 +117,7 @@ export const Component = () => {
<FormControl> <FormControl>
<FormControlLabel <FormControlLabel
control={ control={
<Switch <Checkbox
name='KeyFrameOnlyExtraction' name='KeyFrameOnlyExtraction'
defaultChecked={defaultConfig.TrickplayOptions?.EnableKeyFrameOnlyExtraction} defaultChecked={defaultConfig.TrickplayOptions?.EnableKeyFrameOnlyExtraction}
/> />