1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add form to enable grouping of shows

This commit is contained in:
Johannes Heuel 2025-03-28 15:08:57 +01:00
parent f008d803e8
commit 8ee3b8bed5
No known key found for this signature in database
GPG key ID: 861953D068D1FB22

View file

@ -38,7 +38,8 @@ export const action = async ({ request }: ActionFunctionArgs) => {
config.EnableFolderView = data.DisplayFolderView?.toString() === 'on';
config.DisplaySpecialsWithinSeasons = data.DisplaySpecialsWithinSeasons?.toString() === 'on';
config.EnableGroupingIntoCollections = data.GroupMoviesIntoCollections?.toString() === 'on';
config.EnableGroupingMoviesIntoCollections = data.GroupMoviesIntoCollections?.toString() === 'on';
config.EnableGroupingShowsIntoCollections = data.GroupShowsIntoCollections?.toString() === 'on';
config.EnableExternalContentInSuggestions = data.EnableExternalContentInSuggestions?.toString() === 'on';
await getConfigurationApi(api)
@ -138,7 +139,7 @@ export const Component = () => {
control={
<Checkbox
name={'GroupMoviesIntoCollections'}
defaultChecked={config.EnableGroupingIntoCollections}
defaultChecked={config.EnableGroupingMoviesIntoCollections}
/>
}
label={globalize.translate('LabelGroupMoviesIntoCollections')}
@ -146,6 +147,19 @@ export const Component = () => {
<FormHelperText>{globalize.translate('LabelGroupMoviesIntoCollectionsHelp')}</FormHelperText>
</FormControl>
<FormControl>
<FormControlLabel
control={
<Checkbox
name={'GroupShowsIntoCollections'}
defaultChecked={config.EnableGroupingShowsIntoCollections}
/>
}
label={globalize.translate('LabelGroupShowsIntoCollections')}
/>
<FormHelperText>{globalize.translate('LabelGroupShowsIntoCollectionsHelp')}</FormHelperText>
</FormControl>
<FormControl>
<FormControlLabel
control={