Navigate to edit screen after creating a game. Reloads all the tag inputs.
This commit is contained in:
parent
03c06fbb15
commit
770c31e0e9
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
@inject ArchiveService ArchiveService
|
@inject ArchiveService ArchiveService
|
||||||
@inject ScriptService ScriptService
|
@inject ScriptService ScriptService
|
||||||
@inject IMessageService MessageService
|
@inject IMessageService MessageService
|
||||||
|
@inject NavigationManager NavigationManager
|
||||||
@inject ModalService ModalService
|
@inject ModalService ModalService
|
||||||
|
|
||||||
<Space Direction="DirectionVHType.Vertical" Size="@("large")" Style="width: 100%;">
|
<Space Direction="DirectionVHType.Vertical" Size="@("large")" Style="width: 100%;">
|
||||||
|
@ -177,6 +178,8 @@
|
||||||
Game = await GameService.Add(Game);
|
Game = await GameService.Add(Game);
|
||||||
|
|
||||||
await MessageService.Success("Game added!");
|
await MessageService.Success("Game added!");
|
||||||
|
|
||||||
|
NavigationManager.NavigateTo($"/Games/{Game.Id}/Edit");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Add table
Reference in a new issue