mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -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
|
@ -12,6 +12,7 @@ namespace NzbDrone.Web.Models
|
|||
{
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBMatrix Username")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String NzbMatrixUsername
|
||||
{
|
||||
get;
|
||||
|
@ -20,6 +21,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBMatrix API Key")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String NzbMatrixApiKey
|
||||
{
|
||||
get;
|
||||
|
@ -28,6 +30,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBs.Org UID")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String NzbsOrgUId
|
||||
{
|
||||
get;
|
||||
|
@ -36,6 +39,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBs.Org Hash")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String NzbsOrgHash
|
||||
{
|
||||
get;
|
||||
|
@ -44,6 +48,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBsRus UID")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String NzbsrusUId
|
||||
{
|
||||
get;
|
||||
|
@ -52,6 +57,7 @@ namespace NzbDrone.Web.Models
|
|||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("NZBsRus Hash")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public String NzbsrusHash
|
||||
{
|
||||
get;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue