mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-16 06:13:48 +00:00
Locked changes to a chat while an answer is being written (#1058)
This commit is contained in:
1 parent
88d1f4d96a
commit
fbb65fd72d
19 files changed
+841
-59
No files matched your search
@@ -34,6 +34,10 @@ public partial class ProviderSelection : MSGComponentBase
|
||||
/// <summary>
|
||||
/// Gets or sets whether provider selection is disabled.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// A choice which reaches a disabled selection anyway is turned down. Keeping the selected provider
|
||||
/// up to date after its settings changed is no choice, so that goes on.
|
||||
/// </remarks>
|
||||
[Parameter]
|
||||
public bool Disabled { get; set; }
|
||||
|
||||
@@ -55,6 +59,9 @@ public partial class ProviderSelection : MSGComponentBase
|
||||
|
||||
private async Task SelectionChanged(AIStudio.Settings.Provider provider)
|
||||
{
|
||||
if (this.Disabled)
|
||||
return;
|
||||
|
||||
this.ProviderSettings = provider;
|
||||
await this.ProviderSettingsChanged.InvokeAsync(provider);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user