Fix stuff regarding the ordering of Fields.

This commit is contained in:
Leonardo Galli 2017-01-22 15:08:25 +01:00
parent f481676c81
commit 9fffcfaea3
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ namespace NzbDrone.Api.NetImport
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 =

View File

@ -18,10 +18,10 @@ namespace NzbDrone.Core.NetImport.CouchPotato
[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; }
}
}

View File

@ -27,7 +27,7 @@ namespace NzbDrone.Core.NetImport
[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);