Feature/update net 5 (#487)
* Updated ApplicationCore to net 5 * Updated Infrastructure project to net 5 * Updated BlazorShared project to net 5 * Updated PublicApi project to net 5 * Updated Web mvc project to net 5 * Updated BlazorAdmin project to net-5 * Updated FunctionalTests to net 5 * Updated UnitTests project to net 5 * Updated IntegrationTests project to net 5 * Fixed CSS specific bug in BlazorAdmin project * Updated github action worflow yaml * Changes the name to only .NET * Removed hardcoded minor version from github action workflow. * Removed commneted code. * Removed minor versions from the docker file * Updated dotnet-ef tool version configuration to net-5 * Removed old migration plans * Added net5 migration plans * Updated infrastructure projecti setting. * Removed database error page related configuration * Removed commented package.
This commit is contained in:
@@ -18,22 +18,21 @@
|
||||
@Body
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code
|
||||
@code
|
||||
{
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
var authState = await AuthStateProvider.GetAuthenticationStateAsync();
|
||||
|
||||
if(authState.User == null)
|
||||
if (firstRender)
|
||||
{
|
||||
await new Route(JSRuntime).RouteOutside("/Identity/Account/Login");
|
||||
}
|
||||
CallRequestRefresh();
|
||||
}
|
||||
var authState = await AuthStateProvider.GetAuthenticationStateAsync();
|
||||
|
||||
await base.OnAfterRenderAsync(firstRender);
|
||||
if (authState.User == null)
|
||||
{
|
||||
await new Route(JSRuntime).RouteOutside("/Identity/Account/Login");
|
||||
}
|
||||
CallRequestRefresh();
|
||||
}
|
||||
|
||||
await base.OnAfterRenderAsync(firstRender);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user