mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 08:29:06 +00:00
Added a confirmation dialog for deleting ERI server presets (#260)
This commit is contained in:
parent
63be312bb4
commit
48874d617a
@ -476,6 +476,16 @@ public partial class AssistantERI : AssistantBaseCore
|
||||
if(this.selectedERIServer is null)
|
||||
return;
|
||||
|
||||
var dialogParameters = new DialogParameters
|
||||
{
|
||||
{ "Message", $"Are you sure you want to delete the ERI server preset '{this.selectedERIServer.ServerName}'?" },
|
||||
};
|
||||
|
||||
var dialogReference = await this.DialogService.ShowAsync<ConfirmDialog>("Delete ERI server preset", dialogParameters, DialogOptions.FULLSCREEN);
|
||||
var dialogResult = await dialogReference.Result;
|
||||
if (dialogResult is null || dialogResult.Canceled)
|
||||
return;
|
||||
|
||||
this.SettingsManager.ConfigurationData.ERI.ERIServers.Remove(this.selectedERIServer);
|
||||
this.selectedERIServer = null;
|
||||
this.ResetForm();
|
||||
|
@ -1,3 +1,4 @@
|
||||
# v0.9.26, build 201 (2025-01-xx xx:xx UTC)
|
||||
- Added the ability to configure local and remote (ERI) data sources in the settings as a preview feature behind the RAG feature flag.
|
||||
- Fixed the ERI server assistant to ask for confirmation before deleting a ERI server preset.
|
||||
- Fixed a bug in the ERI server assistant that allowed an empty directory as a base directory for the code generation.
|
Loading…
Reference in New Issue
Block a user