Skip to content

Commit c1e89ca

Browse files
authored
Merge pull request #166 from AT-WH/enableedit
Adding EnableEdit to ViewBag in JobController
2 parents 26c4999 + 6581497 commit c1e89ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SilkierQuartz/Controllers/JobsController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public async Task<IActionResult> New()
5959
job.Group = SchedulerConstants.DefaultGroup;
6060
job.TypeList = Services.Cache.JobTypes;
6161

62+
ViewBag.EnableEdit = EnableEdit;
63+
6264
return View("Edit", new JobViewModel() { Job = job, DataMap = jobDataMap });
6365
}
6466

0 commit comments

Comments
 (0)