23 lines
600 B
Plaintext
23 lines
600 B
Plaintext
@inherits LocalizableComponentBase
|
|
@inject NavigationManager Navigation
|
|
|
|
<AuthorizeView>
|
|
<Authorized>
|
|
<button class="button" @onclick="BeginSignOut">
|
|
@Localizer["Logout"]
|
|
</button>
|
|
</Authorized>
|
|
<NotAuthorized>
|
|
<NavLink ActiveClass="neoBtnSmallInsetPlain" class="button is-rounded neoBtnSmallPlain" href="authentication/login">
|
|
@Localizer["Login"]
|
|
</NavLink>
|
|
</NotAuthorized>
|
|
</AuthorizeView>
|
|
|
|
@code {
|
|
[CascadingParameter] CascadingState CascadingState { get; set; }
|
|
private void BeginSignOut(MouseEventArgs args)
|
|
{
|
|
Navigation.NavigateToLogout("authentication/logout");
|
|
}
|
|
} |