AddSeries/Index will show the RotoDirs Panel if no root dirs are in the DB.
This commit is contained in:
parent
4d3ba62e5d
commit
96670d0567
|
@ -79,6 +79,11 @@ namespace NzbDrone.Web.Controllers
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
panelItem.Add()
|
||||
.Text("Root Directories")
|
||||
.ImageUrl("~/Content/Images/VideoFolder.png")
|
||||
.Selected((bool)ViewData["ShowRootDirs"])
|
||||
.Expanded((bool)ViewData["ShowRootDirs"])
|
||||
.Content(@<text>
|
||||
<div style="padding-top: 10px;">
|
||||
<div style="padding-left: 7px; margin-bottom: 5px;">
|
||||
|
|
Loading…
Reference in New Issue