2023-01-25 21:04:39 +00:00
|
|
|
@page "/settings"
|
|
|
|
|
|
|
|
<h1>Settings</h1>
|
|
|
|
|
2023-01-26 19:08:59 +00:00
|
|
|
<button @onclick="@SignOut">Sign Out</button>
|
|
|
|
|
2023-01-25 21:04:39 +00:00
|
|
|
@code {
|
|
|
|
|
2023-01-26 19:08:59 +00:00
|
|
|
[Inject]
|
|
|
|
private SessionManager sessionManager { get; set; }
|
|
|
|
[Inject]
|
|
|
|
private NavigationManager navigationManager { get; set; }
|
|
|
|
|
2023-01-25 21:04:39 +00:00
|
|
|
protected async override Task OnInitializedAsync()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2023-01-26 19:08:59 +00:00
|
|
|
|
|
|
|
private void SignOut()
|
|
|
|
{
|
|
|
|
sessionManager.SignOut();
|
|
|
|
navigationManager.NavigateTo("/");
|
|
|
|
}
|
2023-01-25 21:04:39 +00:00
|
|
|
}
|