Moved actions and multiplayer modes to cards

This commit is contained in:
Pat Hartl 2023-02-11 21:38:00 -06:00
parent c1eb0adf4d
commit 1c4e903782
3 changed files with 23 additions and 8 deletions

View file

@ -2,8 +2,6 @@
@using LANCommander.Extensions
@inject IDialogService DialogService
<MudText Typo="Typo.h6">Actions</MudText>
<MudTable Items="@OrderedActions" Elevation="0" Dense="true">
<HeaderContent>
<MudTh>Name</MudTh>

View file

@ -1,8 +1,6 @@
@using LANCommander.Data.Enums
@using LANCommander.Data.Models
<MudText Typo="Typo.h6">Multiplayer Modes</MudText>
<MudTable Items="@Game.MultiplayerModes" Elevation="0" Dense="true">
<HeaderContent>
<MudTh>Type</MudTh>

View file

@ -41,15 +41,34 @@
<MudChip>@tags.Name</MudChip>
}
</MudChipSet>
<ActionEditor Actions="Game.Actions" ArchiveId="Game.Archives.OrderByDescending(a => a.CreatedOn).First().Id" />
<MultiplayerModeEditor Game="Game" />
</MudForm>
</MudPaper>
</MudItem>
</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;" />
@code {