diff --git a/MP-TAB-SERV/Components/CmpFooter.razor b/MP-TAB-SERV/Components/CmpFooter.razor
index b433d9e4..c702cf34 100644
--- a/MP-TAB-SERV/Components/CmpFooter.razor
+++ b/MP-TAB-SERV/Components/CmpFooter.razor
@@ -3,7 +3,10 @@
MP-TAB2 @(DateTime.Today.Year) | v.@version
-
+ @if (typeScadLogin > 0)
+ {
+
+ }
@($"{DateTime.Now:HH:mm:ss}") |
Egalware
diff --git a/MP-TAB-SERV/Components/CmpFooter.razor.cs b/MP-TAB-SERV/Components/CmpFooter.razor.cs
index 57939cca..fa976f2a 100644
--- a/MP-TAB-SERV/Components/CmpFooter.razor.cs
+++ b/MP-TAB-SERV/Components/CmpFooter.razor.cs
@@ -29,8 +29,11 @@ namespace MP_TAB_SERV.Components
var pUpd = Task.Run(async () =>
{
- var diffOfTime = DateTime.Now.Subtract(MsgServ.dtLastAction);
- CurrExpVal = MaxExpVal - diffOfTime.TotalMinutes;
+ if (typeScadLogin > 0)
+ {
+ var diffOfTime = DateTime.Now.Subtract(MsgServ.dtLastAction);
+ CurrExpVal = MaxExpVal - diffOfTime.TotalMinutes;
+ }
await InvokeAsync(() => StateHasChanged());
});
pUpd.Wait();
@@ -64,11 +67,13 @@ namespace MP_TAB_SERV.Components
#region Protected Methods
+ protected int typeScadLogin { get; set; } = 0;
protected override async Task OnInitializedAsync()
{
await Task.Delay(1);
var rawVers = typeof(Program).Assembly.GetName().Version;
version = rawVers != null ? rawVers : new Version("0.0.0.0");
+ typeScadLogin = SMServ.GetConfInt("TAB_TypeScadLogin");
dtScadLogin = SMServ.GetConfInt("TAB_dtTimerScadLogin");
MaxExpVal = dtScadLogin;
yLimit = MaxExpVal * 0.3;
diff --git a/MP-TAB-SERV/Shared/MainLayout.razor.cs b/MP-TAB-SERV/Shared/MainLayout.razor.cs
index fe4593a8..c702c78c 100644
--- a/MP-TAB-SERV/Shared/MainLayout.razor.cs
+++ b/MP-TAB-SERV/Shared/MainLayout.razor.cs
@@ -107,11 +107,6 @@ namespace MP_TAB_SERV.Shared
{
NavMan.NavigateTo("logout");
}
- else
- {
- MsgServ.dtLastAction = DateTime.Now;
- MsgServ.dtLastSave = DateTime.Now;
- }
break;
case 1:
if (tsDeltaAct.Minutes >= dtScadLogin)