Navigate to edit screen after creating a game. Reloads all the tag inputs.

This commit is contained in:
Pat Hartl 2023-03-15 20:59:46 -05:00
parent 03c06fbb15
commit 770c31e0e9

View file

@ -10,6 +10,7 @@
@inject ArchiveService ArchiveService
@inject ScriptService ScriptService
@inject IMessageService MessageService
@inject NavigationManager NavigationManager
@inject ModalService ModalService
<Space Direction="DirectionVHType.Vertical" Size="@("large")" Style="width: 100%;">
@ -177,6 +178,8 @@
Game = await GameService.Add(Game);
await MessageService.Success("Game added!");
NavigationManager.NavigateTo($"/Games/{Game.Id}/Edit");
}
}
catch (Exception ex)