Fix stuff regarding the ordering of Fields.

Leonardo Galli 8 years ago
parent f481676c81
commit 9fffcfaea3

@ -22,7 +22,7 @@ namespace NzbDrone.Api.NetImport
int index = 0; int index = 0;
foreach (var field in resource.Fields) foreach (var field in resource.Fields)
{ {
if (field.Label == "Quality") if (field.Label == "Quality Profile")
{ {
index = resource.Fields.FindIndex(f => f.Label == field.Label); index = resource.Fields.FindIndex(f => f.Label == field.Label);
field.SelectOptions = field.SelectOptions =

@ -18,10 +18,10 @@ namespace NzbDrone.Core.NetImport.CouchPotato
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")] [FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
public new string Link { get; set; } 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; } 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; } public string ApiKey { get; set; }
} }
} }

@ -27,7 +27,7 @@ namespace NzbDrone.Core.NetImport
[FieldDefinition(0, Label = "Link", HelpText = "Link to the list of movies.")] [FieldDefinition(0, Label = "Link", HelpText = "Link to the list of movies.")]
public string Link { get; set; } 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 int ProfileId { get; set; }
public bool IsValid => !string.IsNullOrWhiteSpace(Link); public bool IsValid => !string.IsNullOrWhiteSpace(Link);

Loading…
Cancel
Save