@using SteUp.Shared.Components.Pages.Utility @using SteUp.Shared.Components.SingleElements.Modal.ExceptionModal @using SteUp.Shared.Core.BarcodeReader.Contracts @inject NavigationManager NavigationManager @inject IBarcodeManager BarcodeManager @if (!LoadData) { @if (context.User.Identity?.IsAuthenticated != true) { NavigationManager.NavigateTo("/login"); } else {

You are not authorized to access this resource.

}
} else { }
@code { private bool LoadData { get; set; } private ErrorBoundary? ErrorBoundary { get; set; } private ExceptionModal ExceptionModal { get; set; } = null!; protected override async Task OnInitializedAsync() { LoadData = true; StateHasChanged(); await SteupDataService.Init(); BarcodeManager.Init(); LoadData = false; StateHasChanged(); } }