mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
Fixed create workspace form reset
This commit is contained in:
parent
075934343e
commit
b64cfdc0be
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user