mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-03 03:54:24 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
11 lines
902 B
Plaintext
11 lines
902 B
Plaintext
@typeparam TSettings where TSettings : IComponent
|
|
@inherits AssistantBaseCore<TSettings>
|
|
|
|
@* The form comes from the assistant, see AssistantBaseCore; the base adds only what goes next to and below it: *@
|
|
@code {
|
|
|
|
private protected override RenderFragment? HeaderActions => this.OtherMode is { } otherMode ? @<AssistantModeSwitch Tooltip="@this.SwitchTooltip(otherMode)" Disabled="@(this.IsProcessing || this.SubmitDisabled)" OnSwitch="@(() => this.ChooseMode(otherMode))"/> : null;
|
|
|
|
private protected override RenderFragment? BelowSubmitContent => this.ShownEditedDocument is { } document ? @<EditedDocumentSummary Document="@document" Title="@this.DocumentResultTitle" DoneText="@this.DocumentDoneText(document)" SectionsText="@this.DocumentSectionsText(document.Results)" SaveText="@this.DocumentSaveText" IsSaving="@this.isSavingDocument" OnSave="@this.SaveEditedDocumentAsync"/> : null;
|
|
|
|
} |