Fixes the action, custom field, multiplayer mode, and save path editors from clearing out taxonomies when saving. Also passes the Game/Server/Redistributable ID as a cascading parameter.
27 lines
No EOL
850 B
Text
27 lines
No EOL
850 B
Text
@page "/Servers/{id:guid}/Actions"
|
|
@using LANCommander.Server.UI.Pages.Servers.Components
|
|
|
|
<ServerEditView Id="Id" Title="Actions">
|
|
<TitleExtraTemplate>
|
|
@if (context != null && context.Id != Guid.Empty)
|
|
{
|
|
<Flex Align="FlexAlign.Center" Justify="FlexJustify.End" Wrap="FlexWrap.NoWrap" Gap="FlexGap.Small">
|
|
<ServerControl ServerId="context.Id" />
|
|
</Flex>
|
|
}
|
|
</TitleExtraTemplate>
|
|
|
|
<ChildContent>
|
|
<CascadingValue Name="ServerId" Value="context.Id">
|
|
<ActionEditor @ref="_actionEditor" />
|
|
</CascadingValue>
|
|
|
|
<Button Type="@ButtonType.Primary" OnClick="_actionEditor.Save" Icon="@IconType.Fill.Save">Save</Button>
|
|
</ChildContent>
|
|
</ServerEditView>
|
|
|
|
@code {
|
|
[Parameter] public Guid Id { get; set; }
|
|
|
|
ActionEditor _actionEditor;
|
|
} |