Skip to content

Commit

Permalink
fix #3838 - Schedule Jobs looping after new install
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwalker committed Feb 20, 2024
1 parent df64aba commit 5685f26
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Oqtane.Client/Modules/Admin/Jobs/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ else
}

@code {
private List<Job> _jobs;
private List<Job> _jobs;

public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Host; } }

protected override async Task OnParametersSetAsync()
{
_jobs = await JobService.GetJobsAsync();
if (_jobs.Count == 0)
{
AddModuleMessage(string.Format(Localizer["Message.NoJobs"], NavigateUrl("admin/system")), MessageType.Warning);
}
protected override async Task OnInitializedAsync()
{
_jobs = await JobService.GetJobsAsync();
if (_jobs.Count == 0)
{
AddModuleMessage(string.Format(Localizer["Message.NoJobs"], NavigateUrl("admin/system")), MessageType.Warning);
}
}

private string DisplayStatus(bool isEnabled, bool isExecuting)
Expand Down

0 comments on commit 5685f26

Please sign in to comment.