added a render fragment to all assistants below the submit button to show skeletons or other progress indicators

This commit is contained in:
Nils Kruthoff 2026-06-30 23:25:44 +02:00
parent b5a7888188
commit 0064db2b74
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C
2 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,11 @@
</MudTooltip>
}
</MudStack>
@if (this.AfterSubmitContent is not null && this.isProcessing)
{
@this.AfterSubmitContent
}
}
</MudForm>
<Issues IssuesData="@(this.inputIssues)"/>

View File

@ -63,6 +63,8 @@ public abstract partial class AssistantBase<TSettings> : AssistantLowerBase wher
private protected virtual RenderFragment? Body => null;
private protected virtual RenderFragment? AfterSubmitContent => null;
protected virtual bool ShowResult => true;
protected virtual bool ShowEntireChatThread => false;