Updated IndexerSettingsModel with better descriptions.

Enable checkbox for Indexer is now labeled as such.
Removed jscript load for deleted script.
A user will now be unable to add a rootDir if the SabDropDir value is the same (ignoring case).
A user will also be unable to set their SabDropDir to the same value as an exiting RootDir (Ignoring case).
The last two changes prevent users from possibly causing all TV shows to be deleted.
This commit is contained in:
Mark McDowall 2011-09-22 17:18:41 -07:00
parent 3efe465114
commit 95b4250d5d
5 changed files with 21 additions and 10 deletions

View file

@ -153,6 +153,10 @@ namespace NzbDrone.Web.Controllers
if (String.IsNullOrWhiteSpace(path))
return new JsonResult { Data = "failed" };
//Don't let a user add a rootDir that is the same as their SABnzbd TV Directory
if (path.Equals(_configProvider.SabDropDirectory, StringComparison.InvariantCultureIgnoreCase))
return new JsonResult { Data = "failed" };
try
{
_rootFolderProvider.Add(new RootDir { Path = path });