updated notification ui

This commit is contained in:
Keivan 2010-10-17 23:06:16 -07:00
parent 273de41d23
commit 9c7500d4ae
11 changed files with 93 additions and 77 deletions

View file

@ -21,7 +21,13 @@ namespace NzbDrone.Web.Controllers
[HttpGet]
public JsonResult Index()
{
return Json(_notifications.GetProgressNotifications, JsonRequestBehavior.AllowGet);
string message = string.Empty;
if (_notifications.GetProgressNotifications.Count != 0)
{
message = _notifications.GetProgressNotifications[0].CurrentStatus;
}
return Json(message, JsonRequestBehavior.AllowGet);
}
}