mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user