diff --git a/SteUp.Shared/Components/Layout/NavMenu.razor b/SteUp.Shared/Components/Layout/NavMenu.razor index 70da16f..0865a3e 100644 --- a/SteUp.Shared/Components/Layout/NavMenu.razor +++ b/SteUp.Shared/Components/Layout/NavMenu.razor @@ -1,5 +1,6 @@ @using CommunityToolkit.Mvvm.Messaging @using SteUp.Shared.Components.SingleElements.MessageBox +@using SteUp.Shared.Core.Enum @using SteUp.Shared.Core.Messages.Ispezione @using SteUp.Shared.Core.Messages.Scheda @inject INetworkService NetworkService @@ -85,6 +86,13 @@ IsVisible = newIsVisible; PlusVisible = newPlusVisible; + + if (location.EqualsIgnoreCase("ispezione")) + { + var ispezione = SteupDataService.InspectionPageState.Ispezione; + if (ispezione.Stato == StatusEnum.Completata) PlusVisible = false; + } + StateHasChanged(); }; return Task.CompletedTask;