- 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
28 lines
724 B
Text
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)
|
|
{
|
|
|
|
}
|
|
}
|