2022-02-14 01:51:52 +01:00
|
|
|
@inject NavigationManager Navigation
|
|
|
|
|
|
|
|
<AuthorizeView>
|
|
|
|
<Authorized>
|
|
|
|
<button class="button" @onclick="BeginSignOut">
|
|
|
|
@CascadingState.Localizer["Logout"]
|
|
|
|
</button>
|
|
|
|
</Authorized>
|
|
|
|
<NotAuthorized>
|
|
|
|
<NavLink ActiveClass="neoBtnSmallInsetPlain" class="button is-rounded neoBtnSmallPlain" href="authentication/login">
|
|
|
|
@CascadingState.Localizer["Login"]
|
|
|
|
</NavLink>
|
|
|
|
</NotAuthorized>
|
|
|
|
</AuthorizeView>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
[CascadingParameter] CascadingState CascadingState { get; set; }
|
2022-12-02 10:19:57 +01:00
|
|
|
private void BeginSignOut(MouseEventArgs args)
|
2022-02-14 01:51:52 +01:00
|
|
|
{
|
2022-12-02 10:19:57 +01:00
|
|
|
Navigation.NavigateToLogout("authentication/logout");
|
2022-02-14 01:51:52 +01:00
|
|
|
}
|
|
|
|
}
|