2024-08-11 14:48:00 -05:00
|
|
|
@using BootstrapBlazor.Components
|
|
|
|
|
@inherits FeedbackComponent<Data.Models.Game, SDK.Models.Issue>
|
|
|
|
|
@inject SDK.Client Client
|
|
|
|
|
@inject IMessageService MessageService
|
Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
|
|
|
@inject LocalizationService LocalizationService
|
2024-08-11 14:48:00 -05:00
|
|
|
|
|
|
|
|
<Form Model="Issue">
|
2024-09-09 18:20:27 -05:00
|
|
|
<FormItem Style="margin-bottom: 0">
|
2024-08-11 14:48:00 -05:00
|
|
|
<TextArea @bind-Value="@context.Description" MinRows="10" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
</Form>
|
|
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
SDK.Models.Issue Issue { get; set; } = new SDK.Models.Issue();
|
|
|
|
|
|
|
|
|
|
public override async Task OnFeedbackOkAsync(ModalClosingEventArgs args)
|
|
|
|
|
{
|
2024-09-09 18:20:45 -05:00
|
|
|
try {
|
|
|
|
|
Issue.GameId = Options.Id;
|
2024-08-11 14:48:00 -05:00
|
|
|
|
2024-09-09 18:20:45 -05:00
|
|
|
var success = await Client.Issues.Open(Issue.Description, Issue.GameId);
|
2024-08-11 14:48:00 -05:00
|
|
|
|
2024-09-09 18:20:45 -05:00
|
|
|
if (success)
|
|
|
|
|
{
|
Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
|
|
|
MessageService.Success(LocalizationService.GetString("IssueReported"));
|
2024-09-09 18:20:45 -05:00
|
|
|
|
|
|
|
|
await base.FeedbackRef.CloseAsync();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
|
|
|
MessageService.Error(LocalizationService.GetString("UnknownErrorIssueNotReported"));
|
2024-08-11 14:48:00 -05:00
|
|
|
|
2024-09-09 18:20:45 -05:00
|
|
|
args.Reject();
|
|
|
|
|
}
|
2024-08-11 14:48:00 -05:00
|
|
|
}
|
2024-09-09 18:20:45 -05:00
|
|
|
catch (Exception ex)
|
2024-08-11 14:48:00 -05:00
|
|
|
{
|
Add localization support to launcher
Adds localization across the launcher and includes English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Ukranian, and Chinese. These localizations were generated by Claude 3.5 and need to be reviewed by a human for accuracy.
2025-08-18 21:29:38 -05:00
|
|
|
MessageService.Error(LocalizationService.GetString("UnknownErrorIssueNotReported"));
|
2024-08-11 14:48:00 -05:00
|
|
|
|
|
|
|
|
args.Reject();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|