mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-07-04 04:02:56 +00:00
20 lines
909 B
Plaintext
20 lines
909 B
Plaintext
|
@using AIStudio.Settings
|
||
|
@inherits MSGComponentBase
|
||
|
|
||
|
<MudTooltip Placement="Placement.Top" Text="@T("Start a new chat with a chat template.")">
|
||
|
<MudMenu AnchorOrigin="Origin.TopLeft" TransformOrigin="@Origin.BottomLeft" Class="@this.MarginClass">
|
||
|
<ActivatorContent>
|
||
|
<MudButton IconSize="Size.Large" StartIcon="@Icons.Material.Filled.RateReview">
|
||
|
@(this.CurrentChatTemplate != ChatTemplate.NO_CHATTEMPLATE ? this.CurrentChatTemplate.Name : "")
|
||
|
</MudButton>
|
||
|
</ActivatorContent>
|
||
|
<ChildContent>
|
||
|
@foreach (var chatTemplate in this.SettingsManager.ConfigurationData.ChatTemplates.GetAllChatTemplates())
|
||
|
{
|
||
|
<MudMenuItem OnClick="() => this.SelectionChanged(chatTemplate)">
|
||
|
@chatTemplate.Name
|
||
|
</MudMenuItem>
|
||
|
}
|
||
|
</ChildContent>
|
||
|
</MudMenu>
|
||
|
</MudTooltip>
|