@@ -22,10 +14,9 @@
@Body
-
-
diff --git a/MP.IOC/Components/Layout/MainLayout.razor.cs b/MP.IOC/Components/Layout/MainLayout.razor.cs
index 9b4f8844..7c5a26c2 100644
--- a/MP.IOC/Components/Layout/MainLayout.razor.cs
+++ b/MP.IOC/Components/Layout/MainLayout.razor.cs
@@ -1,39 +1,22 @@
-using Microsoft.AspNetCore.Components;
-using MP.AppAuth.Services;
-using MP.Land.Data;
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-
-namespace MP.Land.Shared
+namespace MP.IOC.Components.Layout
{
- public partial class MainLayout
+ public partial class MainLayout : IDisposable
{
#region Public Methods
public void Dispose()
{
- AppMService.EA_ShowSearch -= OnShowSearch;
- AppMService.EA_ShowSearch -= OnHideSearch;
GC.Collect();
}
public void OnHideSearch()
{
ShowSearch = false;
- InvokeAsync(() =>
- {
- StateHasChanged();
- });
}
public void OnShowSearch()
{
ShowSearch = true;
- InvokeAsync(() =>
- {
- StateHasChanged();
- });
}
#endregion Public Methods
@@ -44,9 +27,6 @@ namespace MP.Land.Shared
protected string cssRow { get; set; } = "bottom-row bg-primary";
- [Inject]
- protected AppAuthService DataService { get; set; }
-
protected bool navLarge { get; set; } = true;
protected string sideClass { get; set; } = "sidebar";
@@ -55,24 +35,6 @@ namespace MP.Land.Shared
#region Protected Methods
- protected override async Task OnInitializedAsync()
- {
- AppMService.EA_ShowSearch += OnShowSearch;
- AppMService.EA_HideSearch += OnHideSearch;
- AppMService.EA_UpdateLic += SetYrAuth;
- await Task.Delay(1);
- }
-
- protected void SetYrAuth()
- {
- annualAuthOk = AppMService.YearAuth;
- cssRow = annualAuthOk ? "bottom-row" : "bottom-row bg-danger";
- InvokeAsync(() =>
- {
- StateHasChanged();
- });
- }
-
protected void UpdateNavDisplay()
{
navLarge = !navLarge;
diff --git a/MP.IOC/Components/Layout/NavMenu.razor b/MP.IOC/Components/Layout/NavMenu.razor
index 519ba0ba..955270ba 100644
--- a/MP.IOC/Components/Layout/NavMenu.razor
+++ b/MP.IOC/Components/Layout/NavMenu.razor
@@ -2,11 +2,11 @@
@if (!showText)
{
-
ToggleCompress()">MP.L
+
ToggleCompress()">MP
}
else
{
-
ToggleCompress()">MP.Land
+
ToggleCompress()">MP.IOC
}