mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 05:45:31 +02:00
Removed Command from JobDefinition.
This commit is contained in:
@@ -20,8 +20,5 @@ namespace NzbDrone.Core.Repository
|
|||||||
public DateTime LastExecution { get; set; }
|
public DateTime LastExecution { get; set; }
|
||||||
|
|
||||||
public Boolean Success { get; set; }
|
public Boolean Success { get; set; }
|
||||||
|
|
||||||
[Ignore]
|
|
||||||
public string Command { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -37,11 +37,6 @@ namespace NzbDrone.Web.Controllers
|
|||||||
});
|
});
|
||||||
var jobs = _jobProvider.All();
|
var jobs = _jobProvider.All();
|
||||||
|
|
||||||
foreach(var jobDefinition in jobs)
|
|
||||||
{
|
|
||||||
jobDefinition.Command = "<a href=\"http://www.google.ca\"></a>";
|
|
||||||
}
|
|
||||||
|
|
||||||
return View(jobs);
|
return View(jobs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,8 +11,9 @@
|
|||||||
.Columns(c => c.Bound(g => g.Interval))
|
.Columns(c => c.Bound(g => g.Interval))
|
||||||
.Columns(c => c.Bound(g => g.LastExecution))
|
.Columns(c => c.Bound(g => g.LastExecution))
|
||||||
.Columns(c => c.Bound(g => g.Success))
|
.Columns(c => c.Bound(g => g.Success))
|
||||||
.Columns(c => c.Bound(g => g.Command)
|
.Columns(c => c.Bound(g => g.Id)
|
||||||
.Template(@<text> @{ if(item.Enable)
|
.Title("Command")
|
||||||
|
.Template(@<text> @{ if(item.Enable)
|
||||||
{
|
{
|
||||||
@Ajax.ImageActionLink("../../Content/Images/Gear.png", new { Alt = "Run", Width = 18, Height = 18, Title = "Run Job" }, "RunJob", new { TypeName = item.TypeName }, null, null)
|
@Ajax.ImageActionLink("../../Content/Images/Gear.png", new { Alt = "Run", Width = 18, Height = 18, Title = "Run Job" }, "RunJob", new { TypeName = item.TypeName }, null, null)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user