Working on "Join Game" feature.
This commit is contained in:
@@ -15,7 +15,7 @@ else if (isSpectating)
|
||||
}
|
||||
else
|
||||
{
|
||||
<SeatedGameBoard Perspective="perspective" Session="session" />
|
||||
<SeatedGameBoard Perspective="perspective" Session="session" OnRefetchSession="RefetchSession" />
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,12 @@ else
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(SessionName))
|
||||
await RefetchSession();
|
||||
}
|
||||
|
||||
async Task RefetchSession()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(SessionName))
|
||||
{
|
||||
this.session = await ShogiApi.GetSession(SessionName);
|
||||
if (this.session != null)
|
||||
@@ -42,4 +47,6 @@ else
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user