- Regenerate migrations - Fix identity database context lifetimes - Fix rendering of edit components - Move database settings to separate section
27 lines
No EOL
858 B
Text
27 lines
No EOL
858 B
Text
@page "/Servers/{id:guid}/Actions"
|
|
@using LANCommander.Server.UI.Pages.Servers.Components
|
|
|
|
<ServerEditView Id="Id" Title="Actions">
|
|
<TitleExtraTemplate>
|
|
<Flex Align="FlexAlign.Center" Justify="FlexJustify.End" Wrap="FlexWrap.NoWrap" Gap="FlexGap.Small">
|
|
@if (context != null && context.Id != Guid.Empty)
|
|
{
|
|
<ServerControl ServerId="context.Id"/>
|
|
|
|
<Button Type="ButtonType.Primary" OnClick="() => _actionEditor?.Save()">Save</Button>
|
|
}
|
|
</Flex>
|
|
</TitleExtraTemplate>
|
|
|
|
<ChildContent>
|
|
<CascadingValue Name="ServerId" Value="context.Id">
|
|
<ActionEditor @ref="_actionEditor" />
|
|
</CascadingValue>
|
|
</ChildContent>
|
|
</ServerEditView>
|
|
|
|
@code {
|
|
[Parameter] public Guid Id { get; set; }
|
|
|
|
ActionEditor _actionEditor;
|
|
} |