LANCommander/LANCommander.Launcher/UI/Components/ChangeAliasDialog.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

28 lines
724 B
Text

@namespace LANCommander.Launcher.UI
@inherits FeedbackComponent<string, string>
@inject LocalizationService LocalizationService
<Form Model="Model" OnFinish="Save">
<FormItem Label="@LocalizationService.GetString("NewName")">
<Input @bind-Value="@context.NewAlias" />
</FormItem>
</Form>
@code {
public ChangeAliasDialogModel Model { get; set; } = new ChangeAliasDialogModel();
public class ChangeAliasDialogModel
{
public string NewAlias { get; set; }
}
public override async Task OnFeedbackOkAsync(ModalClosingEventArgs args)
{
await base.OkCancelRefWithResult!.OnOk(Model.NewAlias);
}
async Task Save(EditContext editContext)
{
}
}