Fixed orphaned job issue in JobController

System/Jobs now shows items currently in queue.
This commit is contained in:
kay.one 2011-07-10 21:53:34 -07:00
parent da27db7e03
commit d640fa65e8
6 changed files with 141 additions and 78 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Web.Mvc;
@ -28,6 +29,7 @@ namespace NzbDrone.Web.Controllers
public ActionResult Jobs()
{
ViewData["Queue"] = JobProvider.Queue.Select(c => new Tuple<String, int>(c.Item1.Name, c.Item2));
return View(_jobProvider.All());
}