Fixed an issue with the workspace title not being updated

This commit is contained in:
Thorsten Sommer 2025-01-21 18:57:13 +01:00
parent be408a6aee
commit 1b63647dc8
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
3 changed files with 10 additions and 3 deletions

View File

@ -49,7 +49,7 @@
@bind-ChatThread="@this.chatThread"
@bind-Provider="@this.providerSettings"
Workspaces="@this.workspaces"
WorkspaceName="name => this.currentWorkspaceName = name"/>
WorkspaceName="name => this.UpdateWorkspaceName(name)"/>
</EndContent>
</MudSplitter>
}
@ -67,7 +67,7 @@
@bind-ChatThread="@this.chatThread"
@bind-Provider="@this.providerSettings"
Workspaces="@this.workspaces"
WorkspaceName="name => this.currentWorkspaceName = name"/>
WorkspaceName="name => this.UpdateWorkspaceName(name)"/>
</MudStack>
}
else
@ -77,7 +77,7 @@
@bind-ChatThread="@this.chatThread"
@bind-Provider="@this.providerSettings"
Workspaces="@this.workspaces"
WorkspaceName="name => this.currentWorkspaceName = name"/>
WorkspaceName="name => this.UpdateWorkspaceName(name)"/>
}
@if (

View File

@ -74,6 +74,12 @@ public partial class Chat : MSGComponentBase
private double ReadSplitterPosition => this.AreWorkspacesHidden ? 6 : this.splitterPosition;
private void UpdateWorkspaceName(string workspaceName)
{
this.currentWorkspaceName = workspaceName;
this.StateHasChanged();
}
#region Overrides of MSGComponentBase
public override string ComponentName => nameof(Chat);

View File

@ -3,4 +3,5 @@
- Improved message process debugging. This helps to identify issues related to the message handling.
- Fixed the hostname validation message for ERI v1 data sources.
- Fixed a memory leak in the chat component.
- Fixed an issue with the workspace title not being updated when a chat was moved to another workspace.
- Removed the "send to" button from the ERI server assistant, since it is not supported.