Renamed PopoverTriggerMode

This commit is contained in:
Thorsten Sommer 2025-02-10 20:10:03 +01:00
parent a7efd75966
commit 7642bfa76c
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
5 changed files with 5 additions and 5 deletions

View File

@ -121,7 +121,7 @@
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence) @if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
{ {
<ConfidenceInfo Mode="ConfidenceInfoMode.BUTTON" LLMProvider="@this.providerSettings.UsedLLMProvider"/> <ConfidenceInfo Mode="PopoverTriggerMode.BUTTON" LLMProvider="@this.providerSettings.UsedLLMProvider"/>
} }
@if (this.AllowProfiles && this.ShowProfileSelection) @if (this.AllowProfiles && this.ShowProfileSelection)

View File

@ -97,7 +97,7 @@
@if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence) @if (this.SettingsManager.ConfigurationData.LLMProviders.ShowProviderConfidence)
{ {
<ConfidenceInfo Mode="ConfidenceInfoMode.ICON" LLMProvider="@this.Provider.UsedLLMProvider"/> <ConfidenceInfo Mode="PopoverTriggerMode.ICON" LLMProvider="@this.Provider.UsedLLMProvider"/>
} }
@if (this.isStreaming && this.cancellationTokenSource is not null) @if (this.isStreaming && this.cancellationTokenSource is not null)

View File

@ -1,7 +1,7 @@
@using AIStudio.Provider @using AIStudio.Provider
<div class="d-flex"> <div class="d-flex">
<MudTooltip Text="Shows and hides the confidence card with information about the selected LLM provider." Placement="Placement.Top"> <MudTooltip Text="Shows and hides the confidence card with information about the selected LLM provider." Placement="Placement.Top">
@if (this.Mode is ConfidenceInfoMode.ICON) @if (this.Mode is PopoverTriggerMode.ICON)
{ {
<MudIconButton Icon="@Icons.Material.Filled.Security" Class="confidence-icon" Style="@this.LLMProvider.GetConfidence(this.SettingsManager).SetColorStyle(this.SettingsManager)" OnClick="@(() => this.ToggleConfidence())"/> <MudIconButton Icon="@Icons.Material.Filled.Security" Class="confidence-icon" Style="@this.LLMProvider.GetConfidence(this.SettingsManager).SetColorStyle(this.SettingsManager)" OnClick="@(() => this.ToggleConfidence())"/>
} }

View File

@ -8,7 +8,7 @@ namespace AIStudio.Components;
public partial class ConfidenceInfo : ComponentBase, IMessageBusReceiver, IDisposable public partial class ConfidenceInfo : ComponentBase, IMessageBusReceiver, IDisposable
{ {
[Parameter] [Parameter]
public ConfidenceInfoMode Mode { get; set; } = ConfidenceInfoMode.BUTTON; public PopoverTriggerMode Mode { get; set; } = PopoverTriggerMode.BUTTON;
[Parameter] [Parameter]
public LLMProviders LLMProvider { get; set; } public LLMProviders LLMProvider { get; set; }

View File

@ -1,6 +1,6 @@
namespace AIStudio.Components; namespace AIStudio.Components;
public enum ConfidenceInfoMode public enum PopoverTriggerMode
{ {
BUTTON, BUTTON,
ICON, ICON,