Fix critical editor reparse button

This commit is contained in:
2026-03-15 15:38:59 +01:00
parent 74a9436c92
commit 3534d3fc57

View File

@@ -73,7 +73,13 @@
<h4>Quick Parse Input</h4>
<p class="muted">First line is the result prose. Later lines are base affixes or <code>condition: ...</code> lines with comma-separated shorthand.</p>
</div>
<button type="button" class="btn-ritual" @onclick="OnReparse" disabled="@IsSaving || IsReparsing">
<button
type="button"
class="btn-ritual"
@onclick="HandleReparseClickAsync"
@onclick:stopPropagation="true"
@onclick:preventDefault="true"
disabled="@IsSaving || IsReparsing">
@(IsReparsing ? "Generating..." : "Generate From Quick Input")
</button>
</div>
@@ -411,6 +417,11 @@
await OnSave.InvokeAsync();
}
private async Task HandleReparseClickAsync(MouseEventArgs _)
{
await OnReparse.InvokeAsync();
}
private void HandleQuickParseInputChanged(ChangeEventArgs args)
{
if (Model is null)