mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Add options to expand album types by default (#644)
* Add options to expand album types by default * Remove isAfter and simplify slightly * Fix display of settings on large screens
This commit is contained in:
@@ -10,6 +10,7 @@ import Form from 'Components/Form/Form';
|
||||
import FormGroup from 'Components/Form/FormGroup';
|
||||
import FormLabel from 'Components/Form/FormLabel';
|
||||
import FormInputGroup from 'Components/Form/FormInputGroup';
|
||||
import styles from './UISettings.css';
|
||||
|
||||
export const firstDayOfWeekOptions = [
|
||||
{ key: 0, value: 'Sunday' },
|
||||
@@ -173,6 +174,51 @@ class UISettings extends Component {
|
||||
{...settings.enableColorImpairedMode}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Expand Items by Default</FormLabel>
|
||||
<div className={styles.columnGroup}>
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="expandAlbumByDefault"
|
||||
helpText="Albums"
|
||||
onChange={onInputChange}
|
||||
{...settings.expandAlbumByDefault}
|
||||
/>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="expandEPByDefault"
|
||||
helpText="EPs"
|
||||
onChange={onInputChange}
|
||||
{...settings.expandEPByDefault}
|
||||
/>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="expandSingleByDefault"
|
||||
helpText="Singles"
|
||||
onChange={onInputChange}
|
||||
{...settings.expandSingleByDefault}
|
||||
/>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="expandBroadcastByDefault"
|
||||
helpText="Broadcast"
|
||||
onChange={onInputChange}
|
||||
{...settings.expandBroadcastByDefault}
|
||||
/>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="expandOtherByDefault"
|
||||
helpText="Other"
|
||||
onChange={onInputChange}
|
||||
{...settings.expandOtherByDefault}
|
||||
/>
|
||||
</div>
|
||||
</FormGroup>
|
||||
</FieldSet>
|
||||
</Form>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user