Fixed an issue with the workspace title not being updated (#269)

This commit is contained in:
Thorsten Sommer 2025-01-21 18:58:20 +01:00 committed by GitHub
parent be408a6aee
commit 1681405fb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.