Allow unauthorized users to search and spectate.

This commit is contained in:
2024-11-03 15:53:13 -06:00
parent 8a415a6c9d
commit 0a62eb7582
12 changed files with 72 additions and 74 deletions

View File

@@ -13,14 +13,12 @@
<span></span>
</row>
<hr />
<AuthorizeView>
@foreach (var session in allSessions)
{
<row>
<GameBrowserEntry Session="session" OnSessionDeleted="FetchSessions" />
</row>
}
</AuthorizeView>
@foreach (var session in allSessions)
{
<row>
<GameBrowserEntry Session="session" OnSessionDeleted="FetchSessions" />
</row>
}
</div>
@if (allSessions.Length == 0)
@@ -40,9 +38,10 @@
async Task FetchSessions()
{
var sessions = await ShogiApi.GetAllSessionsMetadata();
Console.WriteLine("Session count {0}", sessions.Length);
if (sessions != null)
{
this.allSessions = sessions.ToArray();
this.allSessions = sessions;
StateHasChanged();
}
}