diff --git a/NzbDrone.Web/Controllers/SettingsController.cs b/NzbDrone.Web/Controllers/SettingsController.cs
index ce24994d1..400b3d692 100644
--- a/NzbDrone.Web/Controllers/SettingsController.cs
+++ b/NzbDrone.Web/Controllers/SettingsController.cs
@@ -236,6 +236,7 @@ namespace NzbDrone.Web.Controllers
model.LaunchBrowser = _configFileProvider.LaunchBrowser;
model.AuthenticationType = selectedAuthenticationType;
model.AuthTypeSelectList = authTypeSelectList;
+ model.RecycleBin = _configProvider.RecycleBin;
return View(model);
}
@@ -622,6 +623,7 @@ namespace NzbDrone.Web.Controllers
_configFileProvider.Port = data.Port;
_configFileProvider.LaunchBrowser = data.LaunchBrowser;
_configFileProvider.AuthenticationType = data.AuthenticationType;
+ _configProvider.RecycleBin = data.RecycleBin;
return GetSuccessResult();
}
diff --git a/NzbDrone.Web/Models/SystemSettingsModel.cs b/NzbDrone.Web/Models/SystemSettingsModel.cs
index d8a2c1a2a..5fd7ea533 100644
--- a/NzbDrone.Web/Models/SystemSettingsModel.cs
+++ b/NzbDrone.Web/Models/SystemSettingsModel.cs
@@ -23,5 +23,10 @@ namespace NzbDrone.Web.Models
public AuthenticationType AuthenticationType { get; set; }
public SelectList AuthTypeSelectList { get; set; }
+
+ [DisplayName("Recycle Bin")]
+ [Description("Path to NzbDrone's internal recycle bin (optional)")]
+ [DisplayFormat(ConvertEmptyStringToNull = false)]
+ public string RecycleBin { get; set; }
}
}
\ No newline at end of file
diff --git a/NzbDrone.Web/Views/Settings/System.cshtml b/NzbDrone.Web/Views/Settings/System.cshtml
index bd63ba828..26b1096e1 100644
--- a/NzbDrone.Web/Views/Settings/System.cshtml
+++ b/NzbDrone.Web/Views/Settings/System.cshtml
@@ -27,6 +27,12 @@
@Html.DropDownListFor(m => m.AuthenticationType, Model.AuthTypeSelectList, new { @class = "inputClass" })
+
+ @Html.TextBoxFor(m => m.RecycleBin, new { @class = "inputClass" })
+