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 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}
/>

View file

@ -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}
/>

View file

@ -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'}

View file

@ -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}
/>