Fixed: Add back minimumAvailability for netimport lists (#3916)

This commit is contained in:
geogolem 2019-12-03 20:56:49 -05:00 committed by Qstick
parent abe7a85a39
commit 9f36665d6d
2 changed files with 13 additions and 0 deletions

View File

@ -40,6 +40,7 @@ function EditNetImportModalContent(props) {
enabled,
enableAuto,
shouldMonitor,
minimumAvailability,
qualityProfileId,
rootFolderPath,
tags,
@ -115,6 +116,16 @@ function EditNetImportModalContent(props) {
/>
</FormGroup>
<FormGroup>
<FormLabel>Minimum Availability</FormLabel>
<FormInputGroup
type={inputTypes.AVAILABILITY_SELECT}
name="minimumAvailability"
{...minimumAvailability}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup>
<FormLabel>Quality Profile</FormLabel>

View File

@ -29,6 +29,7 @@ namespace Radarr.Api.V2.NetImport
resource.ShouldMonitor = definition.ShouldMonitor;
resource.RootFolderPath = definition.RootFolderPath;
resource.QualityProfileId = definition.ProfileId;
resource.MinimumAvailability = definition.MinimumAvailability;
return resource;
}
@ -47,6 +48,7 @@ namespace Radarr.Api.V2.NetImport
definition.ShouldMonitor = resource.ShouldMonitor;
definition.RootFolderPath = resource.RootFolderPath;
definition.ProfileId = resource.QualityProfileId;
definition.MinimumAvailability = resource.MinimumAvailability;
return definition;
}