20-12-2022

This commit is contained in:
Jonathan Jenne 2022-12-20 16:47:36 +01:00
parent 1e925242bc
commit 6bca1f53f4
4 changed files with 18 additions and 3 deletions

View File

@ -8,6 +8,8 @@ namespace ECM.JobRunner.Web.Data
private readonly Logger logger;
private readonly IEDMIServiceChannel channel;
public string Title = "No Title";
public HelperService(LoggingService Logging, WcfService Wcf)
{
logger = Logging.LogConfig.GetLogger();

View File

@ -27,7 +27,11 @@
@if (filteredEntries == null)
{
<ul class="list-group">
<li class="list-group-item">Loading Job History..</li>
<li class="list-group-item">
<div class="spinner-border spinner-border-sm text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div> Loading Job History..
</li>
</ul>
}
else if (filteredEntries.Count == 0)

View File

@ -1,6 +1,14 @@
@page "/"
@using ECM.JobRunner.Web.Data;
@inject HelperService Helper;
@page "/"
<PageTitle>Index</PageTitle>
<h3>ECM Job Runner</h3>
@code {
protected override void OnInitialized()
{
Helper.Title = "Start";
}
}

View File

@ -1,6 +1,7 @@
@using ECM.JobRunner.Web.Data;
@inherits LayoutComponentBase
@inject WcfService Wcf
@inject HelperService Helper;
<PageTitle>ECM.JobRunner.Web</PageTitle>
@ -11,7 +12,7 @@
<main>
<div class="top-row px-4 d-flex align-content-between justify-content-between">
<strong>Page Title</strong>
<strong>@Helper.Title</strong>
<a href="https://docs.microsoft.com/aspnet/" target="_blank">About</a>
</div>