Fix critical editor reparse button
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user