Moved actions and multiplayer modes to cards
This commit is contained in:
parent
c1eb0adf4d
commit
1c4e903782
3 changed files with 23 additions and 8 deletions
|
@ -2,8 +2,6 @@
|
||||||
@using LANCommander.Extensions
|
@using LANCommander.Extensions
|
||||||
@inject IDialogService DialogService
|
@inject IDialogService DialogService
|
||||||
|
|
||||||
<MudText Typo="Typo.h6">Actions</MudText>
|
|
||||||
|
|
||||||
<MudTable Items="@OrderedActions" Elevation="0" Dense="true">
|
<MudTable Items="@OrderedActions" Elevation="0" Dense="true">
|
||||||
<HeaderContent>
|
<HeaderContent>
|
||||||
<MudTh>Name</MudTh>
|
<MudTh>Name</MudTh>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
@using LANCommander.Data.Enums
|
@using LANCommander.Data.Enums
|
||||||
@using LANCommander.Data.Models
|
@using LANCommander.Data.Models
|
||||||
|
|
||||||
<MudText Typo="Typo.h6">Multiplayer Modes</MudText>
|
|
||||||
|
|
||||||
<MudTable Items="@Game.MultiplayerModes" Elevation="0" Dense="true">
|
<MudTable Items="@Game.MultiplayerModes" Elevation="0" Dense="true">
|
||||||
<HeaderContent>
|
<HeaderContent>
|
||||||
<MudTh>Type</MudTh>
|
<MudTh>Type</MudTh>
|
||||||
|
|
|
@ -41,15 +41,34 @@
|
||||||
<MudChip>@tags.Name</MudChip>
|
<MudChip>@tags.Name</MudChip>
|
||||||
}
|
}
|
||||||
</MudChipSet>
|
</MudChipSet>
|
||||||
|
|
||||||
<ActionEditor Actions="Game.Actions" ArchiveId="Game.Archives.OrderByDescending(a => a.CreatedOn).First().Id" />
|
|
||||||
|
|
||||||
<MultiplayerModeEditor Game="Game" />
|
|
||||||
</MudForm>
|
</MudForm>
|
||||||
</MudPaper>
|
</MudPaper>
|
||||||
</MudItem>
|
</MudItem>
|
||||||
</MudGrid>
|
</MudGrid>
|
||||||
|
|
||||||
|
<MudCard Class="mt-4">
|
||||||
|
<MudCardHeader>
|
||||||
|
<CardHeaderContent>
|
||||||
|
<MudText Typo="Typo.h6">Actions</MudText>
|
||||||
|
</CardHeaderContent>
|
||||||
|
</MudCardHeader>
|
||||||
|
|
||||||
|
<MudCardContent>
|
||||||
|
<ActionEditor Actions="Game.Actions" ArchiveId="Game.Archives.OrderByDescending(a => a.CreatedOn).First().Id" />
|
||||||
|
</MudCardContent>
|
||||||
|
</MudCard>
|
||||||
|
|
||||||
|
<MudCard Class="mt-4">
|
||||||
|
<MudCardHeader>
|
||||||
|
<CardHeaderContent>
|
||||||
|
<MudText Typo="Typo.h6">Multiplayer Modes</MudText>
|
||||||
|
</CardHeaderContent>
|
||||||
|
</MudCardHeader>
|
||||||
|
|
||||||
|
<MudCardContent>
|
||||||
|
<MultiplayerModeEditor Game="Game" />
|
||||||
|
</MudCardContent>
|
||||||
|
</MudCard>
|
||||||
<MudFab Color="Color.Primary" Disabled="@(!Success)" OnClick="Save" StartIcon="@Icons.Material.Filled.Save" Style="position: fixed; right: 32px; bottom: 32px;" />
|
<MudFab Color="Color.Primary" Disabled="@(!Success)" OnClick="Save" StartIcon="@Icons.Material.Filled.Save" Style="position: fixed; right: 32px; bottom: 32px;" />
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
Loading…
Add table
Reference in a new issue