mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 11:07:21 +00:00
Switching to settings works now. Scrolling doesnt
This commit is contained in:
1 parent
5537c53d4f
commit
7137e58249
3 files changed
+48
-46
No files matched your search
@@ -8,11 +8,11 @@ namespace AIStudio.Components.Settings;
|
||||
|
||||
public abstract class SettingsPanelBase : ComponentBase
|
||||
{
|
||||
[Parameter]
|
||||
public Func<IReadOnlyList<ConfigurationSelectData<string>>> AvailableLLMProvidersFunc { get; set; } = () => [];
|
||||
[CascadingParameter]
|
||||
public Pages.Settings Settings { get; set; } = null!;
|
||||
|
||||
[Parameter]
|
||||
public SettingsPanel ChosenPanel { get; set; }
|
||||
public Func<IReadOnlyList<ConfigurationSelectData<string>>> AvailableLLMProvidersFunc { get; set; } = () => [];
|
||||
|
||||
protected abstract SettingsPanel Type { get; }
|
||||
|
||||
@@ -28,5 +28,5 @@ public abstract class SettingsPanelBase : ComponentBase
|
||||
[Inject]
|
||||
protected RustService RustService { get; init; } = null!;
|
||||
|
||||
protected bool IsExtended() => this.Type == this.ChosenPanel;
|
||||
protected bool IsExtended() => this.Type == this.Settings.ChosenSettingsPanel;
|
||||
}
|
||||
Reference in new issue
Block a user