mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 10:39:47 +00:00
Started adding settings button
This commit is contained in:
parent
6fdf48f443
commit
4c1e3afb71
@ -6,12 +6,23 @@
|
||||
@(this.Title)
|
||||
</MudText>
|
||||
|
||||
|
||||
|
||||
<InnerScrolling>
|
||||
<ChildContent>
|
||||
<MudForm @ref="@(this.form)" @bind-IsValid="@(this.inputIsValid)" @bind-Errors="@(this.inputIssues)" FieldChanged="@this.TriggerFormChange" Class="pr-2">
|
||||
<MudText Typo="Typo.body1" Align="Align.Justify" Class="mb-6">
|
||||
<MudGrid Class="mb-2">
|
||||
<MudItem xs="9">
|
||||
<MudText Typo="Typo.body1" Align="Align.Justify">
|
||||
@this.Description
|
||||
</MudText>
|
||||
</MudItem>
|
||||
<MudItem xs="3" Class="d-flex justify-end align-start">
|
||||
<MudButton Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.Settings">
|
||||
Settings
|
||||
</MudButton>
|
||||
</MudItem>
|
||||
</MudGrid>
|
||||
|
||||
@if (this.Body is not null)
|
||||
{
|
||||
@ -22,6 +33,7 @@
|
||||
<MudButton Disabled="@this.SubmitDisabled" Variant="Variant.Filled" Class="mb-3" OnClick="() => this.SubmitAction()" Style="@this.SubmitButtonStyle">
|
||||
@this.SubmitText
|
||||
</MudButton>
|
||||
|
||||
}
|
||||
</MudForm>
|
||||
<Issues IssuesData="@(this.inputIssues)"/>
|
||||
@ -112,6 +124,7 @@
|
||||
</MudButton>
|
||||
}
|
||||
|
||||
|
||||
@if (this.ShowReset)
|
||||
{
|
||||
<MudButton Variant="Variant.Filled" Style="@this.GetResetColor()" StartIcon="@Icons.Material.Filled.Refresh" OnClick="() => this.InnerResetForm()">
|
||||
@ -128,6 +141,8 @@
|
||||
{
|
||||
<ProfileSelection MarginLeft="" @bind-CurrentProfile="@this.currentProfile"/>
|
||||
}
|
||||
|
||||
|
||||
</MudStack>
|
||||
</FooterContent>
|
||||
</InnerScrolling>
|
||||
|
@ -89,6 +89,8 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
|
||||
|
||||
protected virtual bool ShowReset => true;
|
||||
|
||||
protected virtual bool ShowAssistantSettings => true;
|
||||
|
||||
protected virtual ChatThread ConvertToChatThread => this.chatThread ?? new();
|
||||
|
||||
protected virtual IReadOnlyList<IButtonData> FooterButtons => [];
|
||||
|
Loading…
Reference in New Issue
Block a user