fix: delete button not showing up

This commit is contained in:
limited_dev 2023-03-11 16:00:50 +01:00
parent b595ce2909
commit 5ee623b295
3 changed files with 6 additions and 5 deletions

View file

@ -98,9 +98,9 @@
private ImageData image;
private string role;
protected override async Task OnAfterRenderAsync(bool firstRender)
protected override async Task OnParametersSetAsync()
{
await base.OnAfterRenderAsync(firstRender);
await base.OnParametersSetAsync();
var cauthStateProvder = (CustomAuthenticationStateProvider)authStateProvider;
var user = await cauthStateProvder.GetAuthenticationStateAsync();
var usr = user.User;

View file

@ -169,9 +169,10 @@
toggleText = opened ? "-" : "+";
}
protected override async Task OnAfterRenderAsync(bool firstRender)
protected override async Task OnParametersSetAsync()
{
await base.OnAfterRenderAsync(firstRender);
await base.OnParametersSetAsync();
value = TheManager.getBumpValue(post) + "v";
string boardTag = post.Board;
var cauthStateProvder = (CustomAuthenticationStateProvider)authStateProvider;

View file

@ -5,7 +5,7 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">BB v0.1.9</a>
<a class="navbar-brand" href="">BB v0.2.2</a>
<AuthorizeView>
<Authorized>
<a class="navbar-brand" @onclick="logout" href="javascript:void(0)" >[Logout]</a>