Files
AI-Studio/app/MindWork AI Studio/Components/ProfileFormSelection.razor
T

15 lines
905 B
Plaintext
Raw Normal View History

2024-09-09 15:08:16 +02:00
@using AIStudio.Settings
2025-04-27 09:06:05 +02:00
@inherits MSGComponentBase
2025-05-25 13:27:22 +02:00
<MudStack Row="true" AlignItems="AlignItems.Baseline" StretchItems="StretchItems.Start" Class="mb-3" Wrap="Wrap.NoWrap">
<MudSelect T="Profile" Strict="@true" Disabled="@this.Disabled" Value="@this.Profile" ValueChanged="@this.SelectionChanged" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Person4" Margin="Margin.Dense" Label="@T("Select one of your profiles")" Variant="Variant.Outlined" Class="mb-3" Validation="@this.Validation">
2025-05-25 13:27:22 +02:00
@foreach (var profile in this.SettingsManager.ConfigurationData.Profiles.GetAllProfiles())
{
<MudSelectItem Value="profile">
2026-02-19 21:24:58 +01:00
@profile.GetSafeName()
2025-05-25 13:27:22 +02:00
</MudSelectItem>
}
</MudSelect>
<MudIconButton Disabled="@this.Disabled" Icon="@Icons.Material.Filled.Settings" OnClick="() => this.OpenSettingsDialog()"/>
</MudStack>