mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 16:13:58 -07:00
Clean up SettingsController to not check for Null's as empty strings will not be null when returned.
class variables for _settingsSaved, _settingsFailed to easily change all error messages when saving
This commit is contained in:
parent
b2524cf697
commit
ff44d05a72
6 changed files with 69 additions and 318 deletions
|
@ -57,6 +57,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("SABnzbd API Key")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String SabApiKey
|
||||
{
|
||||
get;
|
||||
|
@ -65,6 +66,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("SABnzbd Username")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String SabUsername
|
||||
{
|
||||
get;
|
||||
|
@ -73,6 +75,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("SABnzbd Password")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String SabPassword
|
||||
{
|
||||
get;
|
||||
|
@ -80,6 +83,7 @@ namespace NzbDrone.Web.Models
|
|||
}
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
[DisplayName("SABnzbd Category")]
|
||||
public String SabCategory
|
||||
{
|
||||
|
@ -88,7 +92,6 @@ namespace NzbDrone.Web.Models
|
|||
}
|
||||
|
||||
[Required(ErrorMessage = "Please select a valid priority")]
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("SABnzbd Priority")]
|
||||
public SabnzbdPriorityType SabPriority
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue