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:
ta264 2019-03-05 01:16:56 +00:00 committed by Qstick
parent 1e48ea58b0
commit 1f483c3a3c
7 changed files with 118 additions and 10 deletions

View file

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