Added a confirmation dialog for deleting ERI server presets (#260)

This commit is contained in:
Thorsten Sommer 2025-01-13 19:58:52 +01:00 committed by GitHub
parent 63be312bb4
commit 48874d617a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -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();

View File

@ -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.