mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
SABnzbd settings will now dynamically get the categories available from SABnzbd when the category drop-box gets focus, it will use values on the page so there is no need to save your settings first.
This commit is contained in:
parent
d554e9ec83
commit
1d983801e8
13 changed files with 228 additions and 26 deletions
|
@ -80,8 +80,8 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
public ActionResult Sabnzbd()
|
||||
{
|
||||
var sabDropDir = _configProvider.SabDropDirectory;
|
||||
var selectList = new SelectList(new List<string> { sabDropDir }, sabDropDir);
|
||||
var tvCategory = _configProvider.SabTvCategory;
|
||||
var tvCategorySelectList = new SelectList(new[] { tvCategory });
|
||||
|
||||
var model = new SabnzbdSettingsModel
|
||||
{
|
||||
|
@ -92,8 +92,8 @@ namespace NzbDrone.Web.Controllers
|
|||
SabPassword = _configProvider.SabPassword,
|
||||
SabTvCategory = _configProvider.SabTvCategory,
|
||||
SabTvPriority = _configProvider.SabTvPriority,
|
||||
SabDropDirectory = sabDropDir,
|
||||
SabDropDirectorySelectList = selectList
|
||||
SabDropDirectory = _configProvider.SabDropDirectory,
|
||||
SabTvCategorySelectList = tvCategorySelectList
|
||||
};
|
||||
|
||||
return View(model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue