feat: allow grouping shows into collections (#6389)
* Add form to enable grouping of shows * Add strings for the group shows form
This commit is contained in:
@@ -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={
|
||||
|
||||
@@ -724,6 +724,8 @@
|
||||
"LabelFriendlyName": "Friendly name",
|
||||
"LabelGroupMoviesIntoCollections": "Group movies into collections",
|
||||
"LabelGroupMoviesIntoCollectionsHelp": "Movies in a collection will be displayed as one grouped item when displaying movie lists.",
|
||||
"LabelGroupShowsIntoCollections": "Group shows into collections",
|
||||
"LabelGroupShowsIntoCollectionsHelp": "Shows in a collection will be displayed as one grouped item when displaying show lists.",
|
||||
"LabelH264Crf": "H.264 encoding CRF",
|
||||
"LabelH265Crf": "H.265 encoding CRF",
|
||||
"LabelHardwareAccelerationType": "Hardware acceleration",
|
||||
|
||||
Reference in New Issue
Block a user