mirror of
https://github.com/Readarr/Readarr
synced 2026-01-06 15:43:19 +01:00
parent
e4ad1c5e16
commit
4adffff5ba
4 changed files with 0 additions and 99 deletions
|
|
@ -10,7 +10,6 @@ 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' },
|
||||
|
|
@ -174,51 +173,6 @@ class UISettings extends Component {
|
|||
{...settings.enableColorImpairedMode}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Expand Items by Default</FormLabel>
|
||||
<div className={styles.columnGroup}>
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="expandBookByDefault"
|
||||
helpText="Books"
|
||||
onChange={onInputChange}
|
||||
{...settings.expandBookByDefault}
|
||||
/>
|
||||
|
||||
<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>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,41 +353,6 @@ public bool EnableColorImpairedMode
|
|||
set { SetValue("EnableColorImpairedMode", value); }
|
||||
}
|
||||
|
||||
public bool ExpandAlbumByDefault
|
||||
{
|
||||
get { return GetValueBoolean("ExpandAlbumByDefault", false); }
|
||||
|
||||
set { SetValue("ExpandAlbumByDefault", value); }
|
||||
}
|
||||
|
||||
public bool ExpandEPByDefault
|
||||
{
|
||||
get { return GetValueBoolean("ExpandEPByDefault", false); }
|
||||
|
||||
set { SetValue("ExpandEPByDefault", value); }
|
||||
}
|
||||
|
||||
public bool ExpandSingleByDefault
|
||||
{
|
||||
get { return GetValueBoolean("ExpandSingleByDefault", false); }
|
||||
|
||||
set { SetValue("ExpandSingleByDefault", value); }
|
||||
}
|
||||
|
||||
public bool ExpandBroadcastByDefault
|
||||
{
|
||||
get { return GetValueBoolean("ExpandBroadcastByDefault", false); }
|
||||
|
||||
set { SetValue("ExpandBroadcastByDefault", value); }
|
||||
}
|
||||
|
||||
public bool ExpandOtherByDefault
|
||||
{
|
||||
get { return GetValueBoolean("ExpandOtherByDefault", false); }
|
||||
|
||||
set { SetValue("ExpandOtherByDefault", value); }
|
||||
}
|
||||
|
||||
public bool CleanupMetadataImages
|
||||
{
|
||||
get { return GetValueBoolean("CleanupMetadataImages", true); }
|
||||
|
|
|
|||
|
|
@ -63,12 +63,6 @@ public interface IConfigService
|
|||
bool ShowRelativeDates { get; set; }
|
||||
bool EnableColorImpairedMode { get; set; }
|
||||
|
||||
bool ExpandAlbumByDefault { get; set; }
|
||||
bool ExpandSingleByDefault { get; set; }
|
||||
bool ExpandEPByDefault { get; set; }
|
||||
bool ExpandBroadcastByDefault { get; set; }
|
||||
bool ExpandOtherByDefault { get; set; }
|
||||
|
||||
//Internal
|
||||
bool CleanupMetadataImages { get; set; }
|
||||
|
||||
|
|
|
|||
|
|
@ -16,12 +16,6 @@ public class UiConfigResource : RestResource
|
|||
public bool ShowRelativeDates { get; set; }
|
||||
|
||||
public bool EnableColorImpairedMode { get; set; }
|
||||
|
||||
public bool ExpandAlbumByDefault { get; set; }
|
||||
public bool ExpandSingleByDefault { get; set; }
|
||||
public bool ExpandEPByDefault { get; set; }
|
||||
public bool ExpandBroadcastByDefault { get; set; }
|
||||
public bool ExpandOtherByDefault { get; set; }
|
||||
}
|
||||
|
||||
public static class UiConfigResourceMapper
|
||||
|
|
@ -39,12 +33,6 @@ public static UiConfigResource ToResource(IConfigService model)
|
|||
ShowRelativeDates = model.ShowRelativeDates,
|
||||
|
||||
EnableColorImpairedMode = model.EnableColorImpairedMode,
|
||||
|
||||
ExpandAlbumByDefault = model.ExpandAlbumByDefault,
|
||||
ExpandSingleByDefault = model.ExpandSingleByDefault,
|
||||
ExpandEPByDefault = model.ExpandEPByDefault,
|
||||
ExpandBroadcastByDefault = model.ExpandBroadcastByDefault,
|
||||
ExpandOtherByDefault = model.ExpandOtherByDefault
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue