mirror of
https://github.com/Radarr/Radarr
synced 2025-02-25 15:43:08 +00:00
Fix stuff regarding the ordering of Fields.
This commit is contained in:
parent
f481676c81
commit
9fffcfaea3
3 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ protected override void MapToResource(NetImportResource resource, NetImportDefin
|
|||
int index = 0;
|
||||
foreach (var field in resource.Fields)
|
||||
{
|
||||
if (field.Label == "Quality")
|
||||
if (field.Label == "Quality Profile")
|
||||
{
|
||||
index = resource.Fields.FindIndex(f => f.Label == field.Label);
|
||||
field.SelectOptions =
|
||||
|
|
|
@ -18,10 +18,10 @@ public CouchPotatoSettings()
|
|||
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
|
||||
public new string Link { get; set; }
|
||||
|
||||
[FieldDefinition(1, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
|
||||
[FieldDefinition(2, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
|
||||
public string Port { get; set; }
|
||||
|
||||
[FieldDefinition(2, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
|
||||
[FieldDefinition(3, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
|
||||
public string ApiKey { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ public NetImportBaseSettings()
|
|||
[FieldDefinition(0, Label = "Link", HelpText = "Link to the list of movies.")]
|
||||
public string Link { get; set; }
|
||||
|
||||
[FieldDefinition(1, Label = "Quality", Type = FieldType.Select, SelectOptions = typeof(Profile), HelpText = "Quality of all imported movies")]
|
||||
[FieldDefinition(1, Label = "Quality Profile", Type = FieldType.Select, SelectOptions = typeof(Profile), HelpText = "Quality Profile of all added movies")]
|
||||
public int ProfileId { get; set; }
|
||||
|
||||
public bool IsValid => !string.IsNullOrWhiteSpace(Link);
|
||||
|
|
Loading…
Reference in a new issue