Fixed create workspace form reset

This commit is contained in:
Thorsten Sommer 2026-06-06 09:59:38 +02:00
parent 075934343e
commit b64cfdc0be
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 7 additions and 1 deletions

View File

@ -130,8 +130,9 @@ public partial class WorkspaceSelectionDialog : MSGComponentBase
this.workspaces.Add(new(result.Workspace.WorkspaceId, result.Workspace.Name)); this.workspaces.Add(new(result.Workspace.WorkspaceId, result.Workspace.Name));
this.selectedWorkspace = result.Workspace.WorkspaceId; this.selectedWorkspace = result.Workspace.WorkspaceId;
this.newWorkspaceName = string.Empty; this.newWorkspaceName = string.Empty;
this.createWorkspaceForm.ResetValidation(); this.createWorkspaceForm?.ResetValidation();
this.showCreateWorkspaceForm = false; this.showCreateWorkspaceForm = false;
await this.SendMessage(Event.WORKSPACE_CREATED, result.Workspace.WorkspaceId);
} }
finally finally
{ {

View File

@ -160,6 +160,11 @@ public enum Event
/// Notifies receivers that a workspace was renamed. /// Notifies receivers that a workspace was renamed.
/// </summary> /// </summary>
WORKSPACE_RENAMED, WORKSPACE_RENAMED,
/// <summary>
/// Notifies receivers that a workspace was created.
/// </summary>
WORKSPACE_CREATED,