LANCommander/LANCommander.Launcher/UI/Components/ActionSelectorDialog/ActionSelectorDialog.razor
Pat Hartl 698a7523b6 Code cleanup
- Move all Launcher components to LANCommander.Launcher.UI namespace
- Move all SCSS files next to components (when possible)
- Refactor styles that control overflow of content into titlebar to MainWindow only
- Remove use in launcher UI of SDK.Client
2025-12-31 20:01:04 -06:00

21 lines
No EOL
622 B
Text

@using System.Diagnostics
@using LANCommander.Launcher.Data.Models
@using LANCommander.Launcher.Models
@namespace LANCommander.Launcher.UI
@inherits FeedbackComponent<ActionSelectorDialogOptions, Process>
@inject GameService GameService
<AntList DataSource="Options.Actions" TItem="SDK.Models.Manifest.Action" Class="ant-list-clickable" Size="ListSize.Small">
<ListItem OnClick="() => Run(Options.Game, context)">
@context.Name
</ListItem>
</AntList>
@code {
void Run(Game game, SDK.Models.Manifest.Action action)
{
GameService.Run(game, action);
CloseFeedbackAsync();
}
}