Allow unauthorized users to search and spectate.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user