mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 17:39:47 +00:00
Disable auto-save when preselection is disabled
This commit is contained in:
parent
b6f4307d7d
commit
33620516cf
@ -30,7 +30,14 @@
|
||||
automatically saved. Would you like this?
|
||||
</MudText>
|
||||
|
||||
<MudTextSwitch Label="Should we automatically save any input made?" @bind-Value="@this.autoSave" LabelOn="Yes, please save my inputs" LabelOff="No, I will enter everything again or configure it manually in the settings" />
|
||||
@if(!this.SettingsManager.ConfigurationData.ERI.PreselectOptions)
|
||||
{
|
||||
<MudText Typo="Typo.body1" Class="mb-3">
|
||||
Hint: to allow this assistant to automatically save your changes, you must enable the preselection of values in the settings.
|
||||
</MudText>
|
||||
}
|
||||
|
||||
<MudTextSwitch Label="Should we automatically save any input made?" Disabled="@(!this.SettingsManager.ConfigurationData.ERI.PreselectOptions)" @bind-Value="@this.autoSave" LabelOn="Yes, please save my inputs" LabelOff="No, I will enter everything again or configure it manually in the settings" />
|
||||
|
||||
<MudText Typo="Typo.h4" Class="mt-6 mb-1">
|
||||
Common ERI server settings
|
||||
|
@ -108,7 +108,7 @@ public partial class AssistantERI : AssistantBaseCore
|
||||
|
||||
private async Task AutoSave()
|
||||
{
|
||||
if(!this.autoSave)
|
||||
if(!this.autoSave || !this.SettingsManager.ConfigurationData.ERI.PreselectOptions)
|
||||
return;
|
||||
|
||||
this.SettingsManager.ConfigurationData.ERI.PreselectedServerName = this.serverName;
|
||||
|
Loading…
Reference in New Issue
Block a user