mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 10:29:07 +00:00
Fixed the bug where users were no longer able to move chats to workspaces, caused by the migration to MudBlazor 7.x.x (#57)
This commit is contained in:
parent
cac2373269
commit
c1b92a05fc
@ -1,7 +1,7 @@
|
||||
<MudDialog>
|
||||
<DialogContent>
|
||||
<MudText Typo="Typo.body1">@this.Message</MudText>
|
||||
<MudList @bind-SelectedValue="@this.selectedWorkspace">
|
||||
<MudList T="Guid" @bind-SelectedValue="@this.selectedWorkspace">
|
||||
@foreach (var (workspaceName, workspaceId) in this.workspaces)
|
||||
{
|
||||
<MudListItem Text="@workspaceName" Icon="@Icons.Material.Filled.Description" Value="@workspaceId" />
|
||||
|
@ -21,7 +21,7 @@ public partial class WorkspaceSelectionDialog : ComponentBase
|
||||
public string ConfirmText { get; set; } = "OK";
|
||||
|
||||
private readonly Dictionary<string, Guid> 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));
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user