From e3229290a4aa7fb85bba53d6671c1371150f0600 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 28 Jul 2024 16:53:20 +0200 Subject: [PATCH] Fixed the bug where users cannot delete a self-hosted provider when an API token was never entered --- app/MindWork AI Studio/Settings/SettingsManager.cs | 5 +++-- app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Settings/SettingsManager.cs b/app/MindWork AI Studio/Settings/SettingsManager.cs index 338c35c8..38b46c63 100644 --- a/app/MindWork AI Studio/Settings/SettingsManager.cs +++ b/app/MindWork AI Studio/Settings/SettingsManager.cs @@ -73,9 +73,10 @@ public sealed class SettingsManager /// /// Data structure for deleting a secret response. /// - /// True, when the secret was successfully deleted. + /// True, when the secret was successfully deleted or not found. /// The issue, when the secret could not be deleted. - public readonly record struct DeleteSecretResponse(bool Success, string Issue); + /// True, when the entry was found and deleted. + public readonly record struct DeleteSecretResponse(bool Success, string Issue, bool WasEntryFound); /// /// Tries to delete the API key for the given provider. diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md b/app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md index b2568e83..9be70b3a 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md @@ -6,6 +6,7 @@ - Improved readability of the issue component - Improved switches: when an option is enabled, the switch is using a different color - Fixed the applying of spellchecking settings to the single-line dialog +- Fixed the bug where users cannot delete a self-hosted provider when an API token was never entered - Restructured the layout of the settings page - Refactored the settings data model - Upgraded to Rust 1.80.0