Fix keys editor blocking render after save of new game. Do full page redirect after adding game. Fixes #13
This commit is contained in:
parent
44644b7ac9
commit
b28f4f78b1
2 changed files with 50 additions and 45 deletions
|
@ -1,19 +1,21 @@
|
|||
@inject KeyService KeyService
|
||||
@inject IMessageService MessageService
|
||||
|
||||
<Row>
|
||||
<Col Span="8">
|
||||
@if (Keys != null)
|
||||
{
|
||||
<GridRow>
|
||||
<GridCol Span="8">
|
||||
<Statistic Title="Available" Value="Keys.Count - AllocatedKeys" Style="text-align: center;" />
|
||||
</Col>
|
||||
<Col Span="8">
|
||||
</GridCol>
|
||||
<GridCol Span="8">
|
||||
<Statistic Title="Allocated" Value="AllocatedKeys" Style="text-align: center;" />
|
||||
</Col>
|
||||
<Col Span="8">
|
||||
</GridCol>
|
||||
<GridCol Span="8">
|
||||
<Statistic Title="Total" Value="Keys.Count" Style="text-align: center;" />
|
||||
</Col>
|
||||
</Row>
|
||||
</GridCol>
|
||||
</GridRow>
|
||||
|
||||
<Modal Title="View Keys" Visible="ViewModalVisible" Maximizable="false" DefaultMaximized="true" OnCancel="() => ViewModalVisible = false" OnOk="() => ViewModalVisible = false">
|
||||
<Modal Title="View Keys" Visible="ViewModalVisible" Maximizable="false" DefaultMaximized="true" OnCancel="() => ViewModalVisible = false" OnOk="() => ViewModalVisible = false">
|
||||
<Table TItem="Key" DataSource="@Keys" Bordered>
|
||||
<PropertyColumn Property="k => k.Value">
|
||||
<InputPassword @bind-Value="@context.Value" />
|
||||
|
@ -43,11 +45,14 @@
|
|||
</Space>
|
||||
</ActionColumn>
|
||||
</Table>
|
||||
</Modal>
|
||||
</Modal>
|
||||
|
||||
<Modal Title="Edit Keys" Visible="EditModalVisible" Maximizable="false" DefaultMaximized="true" OnCancel="() => EditModalVisible = false" OnOk="Save">
|
||||
<Modal Title="Edit Keys" Visible="EditModalVisible" Maximizable="false" DefaultMaximized="true" OnCancel="() => EditModalVisible = false" OnOk="Save">
|
||||
<StandaloneCodeEditor @ref="Editor" Id="editor" ConstructionOptions="EditorConstructionOptions" />
|
||||
</Modal>
|
||||
</Modal>
|
||||
}
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
.monaco-editor-container {
|
||||
|
|
|
@ -197,7 +197,7 @@
|
|||
|
||||
await MessageService.Success("Game added!");
|
||||
|
||||
NavigationManager.NavigateTo($"/Games/{Game.Id}/Edit");
|
||||
NavigationManager.NavigateTo($"/Games/{Game.Id}/Edit", true);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Add table
Reference in a new issue