mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 22:12: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.selectedWorkspace = result.Workspace.WorkspaceId;
|
||||
this.newWorkspaceName = string.Empty;
|
||||
this.createWorkspaceForm.ResetValidation();
|
||||
this.createWorkspaceForm?.ResetValidation();
|
||||
this.showCreateWorkspaceForm = false;
|
||||
await this.SendMessage(Event.WORKSPACE_CREATED, result.Workspace.WorkspaceId);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@ -160,6 +160,11 @@ public enum Event
|
||||
/// Notifies receivers that a workspace was renamed.
|
||||
/// </summary>
|
||||
WORKSPACE_RENAMED,
|
||||
|
||||
/// <summary>
|
||||
/// Notifies receivers that a workspace was created.
|
||||
/// </summary>
|
||||
WORKSPACE_CREATED,
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user