2024-05-25 22:21:04 -05:00
|
|
|
@using System.Diagnostics
|
2024-06-01 22:47:56 -05:00
|
|
|
@using LANCommander.Client.Data.Models
|
2024-05-25 22:21:04 -05:00
|
|
|
@using LANCommander.Client.Models
|
|
|
|
|
@inherits FeedbackComponent<ActionSelectorDialogOptions, Process>
|
|
|
|
|
@inject LibraryService LibraryService
|
|
|
|
|
|
2024-06-02 17:39:49 -05:00
|
|
|
<AntList DataSource="Options.Actions" TItem="SDK.Models.Action" Class="ant-list-clickable" Size="small">
|
2024-06-01 22:47:56 -05:00
|
|
|
<ListItem OnClick="() => Run(Options.Game, context)">
|
2024-05-25 22:21:04 -05:00
|
|
|
@context.Name
|
|
|
|
|
</ListItem>
|
|
|
|
|
</AntList>
|
|
|
|
|
|
|
|
|
|
@code {
|
2024-06-01 22:47:56 -05:00
|
|
|
void Run(Game game, SDK.Models.Action action)
|
2024-05-25 22:21:04 -05:00
|
|
|
{
|
2024-06-01 22:47:56 -05:00
|
|
|
LibraryService.Run(game, action);
|
2024-05-25 22:21:04 -05:00
|
|
|
|
|
|
|
|
CloseFeedbackAsync();
|
|
|
|
|
}
|
|
|
|
|
}
|