yep
This commit is contained in:
@@ -26,9 +26,16 @@
|
||||
</main>
|
||||
|
||||
@code {
|
||||
bool welcomeModalIsVisible = false;
|
||||
string activeSessionName = string.Empty;
|
||||
ClientWebSocket socket = new ClientWebSocket();
|
||||
private bool welcomeModalIsVisible;
|
||||
private string activeSessionName;
|
||||
private ClientWebSocket socket;
|
||||
|
||||
public Home()
|
||||
{
|
||||
welcomeModalIsVisible = false;
|
||||
activeSessionName = string.Empty;
|
||||
socket = new ClientWebSocket();
|
||||
}
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
@@ -40,10 +47,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
private void OnLoginChanged(object? sender, LoginEventArgs args)
|
||||
private Task OnLoginChanged(LoginEventArgs args)
|
||||
{
|
||||
welcomeModalIsVisible = args.User == null;
|
||||
StateHasChanged();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
private void OnChangeSession(SessionMetadata s)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user