...
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
@inject HttpClient _hc
|
||||
@inject NavigationManager nav
|
||||
@inject localService localserv;
|
||||
@inject Fixedvalues fv;
|
||||
<HeadContent>
|
||||
<link rel="canonical" href="#">
|
||||
<!-- Favicon -->
|
||||
@@ -180,7 +181,11 @@
|
||||
<footer class="content-footer footer bg-footer-theme">
|
||||
<div class="container-xxl d-flex flex-wrap justify-content-between py-2 flex-md-row flex-column">
|
||||
<div class="mb-2 mb-md-0">
|
||||
<span>کپی رایت با <a href="#">مهدی</a> – 2023</span>
|
||||
@if (@dashBoard!=null)
|
||||
{
|
||||
<span>آخرین ورود : @dashBoard?.LastLoginDate</span>
|
||||
}
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<NavLink style="cursor:pointer" onclick="@Logout">
|
||||
@@ -200,8 +205,17 @@
|
||||
<div class="layout-overlay layout-menu-toggle"></div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
public DashBoardDTO? dashBoard { get; set; }
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
if (!await localserv.OnlineUser())
|
||||
nav.NavigateTo("/");
|
||||
|
||||
|
||||
dashBoard = await fv.GetDashBoard();
|
||||
await base.OnInitializedAsync();
|
||||
}
|
||||
}
|
||||
@functions {
|
||||
private async Task Logout()
|
||||
{
|
||||
|
Reference in New Issue
Block a user