diff --git a/NzbDrone.Web/Controllers/AddSeriesController.cs b/NzbDrone.Web/Controllers/AddSeriesController.cs index 5d8018609..a4c5b09a8 100644 --- a/NzbDrone.Web/Controllers/AddSeriesController.cs +++ b/NzbDrone.Web/Controllers/AddSeriesController.cs @@ -79,6 +79,11 @@ public ActionResult Index() var defaultQuality = Convert.ToInt32(_configProvider.DefaultQualityProfile); var selectList = new SelectList(profiles, "QualityProfileId", "Name", defaultQuality); ViewData["qualities"] = selectList; + ViewData["ShowRootDirs"] = false; + + //There are no RootDirs Show the RootDirs Panel + if (rootDirs.Count == 0) + ViewData["ShowRootDirs"] = true; return View(rootDirs); } diff --git a/NzbDrone.Web/Views/AddSeries/Index.cshtml b/NzbDrone.Web/Views/AddSeries/Index.cshtml index 6c1845436..e010497df 100644 --- a/NzbDrone.Web/Views/AddSeries/Index.cshtml +++ b/NzbDrone.Web/Views/AddSeries/Index.cshtml @@ -42,6 +42,8 @@ panelItem.Add() .Text("Root Directories") .ImageUrl("~/Content/Images/VideoFolder.png") + .Selected((bool)ViewData["ShowRootDirs"]) + .Expanded((bool)ViewData["ShowRootDirs"]) .Content(@