From c1b92a05fc768694505ddb7a3df6ef54996b870c Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 28 Jul 2024 18:38:03 +0200 Subject: [PATCH] Fixed the bug where users were no longer able to move chats to workspaces, caused by the migration to MudBlazor 7.x.x (#57) --- .../Components/CommonDialogs/WorkspaceSelectionDialog.razor | 2 +- .../CommonDialogs/WorkspaceSelectionDialog.razor.cs | 4 ++-- app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor b/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor index 145ee2c..3c18508 100644 --- a/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor +++ b/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor @@ -1,7 +1,7 @@ @this.Message - + @foreach (var (workspaceName, workspaceId) in this.workspaces) { diff --git a/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor.cs b/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor.cs index 821d3d6..b958229 100644 --- a/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor.cs +++ b/app/MindWork AI Studio/Components/CommonDialogs/WorkspaceSelectionDialog.razor.cs @@ -21,7 +21,7 @@ public partial class WorkspaceSelectionDialog : ComponentBase public string ConfirmText { get; set; } = "OK"; private readonly Dictionary workspaces = new(); - private object? selectedWorkspace; + private Guid selectedWorkspace; #region Overrides of ComponentBase @@ -56,5 +56,5 @@ public partial class WorkspaceSelectionDialog : ComponentBase private void Cancel() => this.MudDialog.Cancel(); - private void Confirm() => this.MudDialog.Close(DialogResult.Ok(this.selectedWorkspace is Guid workspaceId ? workspaceId : default)); + private void Confirm() => this.MudDialog.Close(DialogResult.Ok(this.selectedWorkspace)); } \ No newline at end of file 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 9be70b3..557f177 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.8.5.md @@ -7,6 +7,7 @@ - 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 +- Fixed the bug where users were no longer able to move chats to workspaces, caused by the migration to MudBlazor 7.x.x - Restructured the layout of the settings page - Refactored the settings data model - Upgraded to Rust 1.80.0