leftover notification code

This commit is contained in:
kay.one 2011-08-21 18:00:12 -07:00
parent 5ab07d7028
commit 1e9ae9a508
6 changed files with 16 additions and 13 deletions

View file

@ -29,13 +29,13 @@ namespace NzbDrone.Web.Controllers
public JsonResult Trim()
{
_historyProvider.Trim();
return new JsonResult { Data = "ok" };
return Json(new NotificationResult() { Title = "Trimmed History items"});
}
public JsonResult Purge()
{
_historyProvider.Purge();
return new JsonResult { Data = "ok" };
return Json(new NotificationResult() { Title = "History Cleared" });
}
[GridAction]