Remove old lidarr UI settings

Fixes #401
pull/422/head
ta264 4 years ago
parent e4ad1c5e16
commit 4adffff5ba

@ -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 @@ namespace NzbDrone.Core.Configuration
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 @@ namespace NzbDrone.Core.Configuration
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 @@ namespace Readarr.Api.V1.Config
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 @@ namespace Readarr.Api.V1.Config
ShowRelativeDates = model.ShowRelativeDates,
EnableColorImpairedMode = model.EnableColorImpairedMode,
ExpandAlbumByDefault = model.ExpandAlbumByDefault,
ExpandSingleByDefault = model.ExpandSingleByDefault,
ExpandEPByDefault = model.ExpandEPByDefault,
ExpandBroadcastByDefault = model.ExpandBroadcastByDefault,
ExpandOtherByDefault = model.ExpandOtherByDefault
};
}
}

Loading…
Cancel
Save