mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
Improved cancel UX
This commit is contained in:
parent
22c897a3a8
commit
3918d7d674
@ -120,7 +120,20 @@ public partial class WorkspaceSelectionDialog : MSGComponentBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Cancel() => this.MudDialog.Cancel();
|
private void Cancel()
|
||||||
|
{
|
||||||
|
if (!this.showCreateWorkspaceForm)
|
||||||
|
{
|
||||||
|
this.MudDialog.Cancel();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.createWorkspaceError = null;
|
||||||
|
this.createWorkspaceErrorName = null;
|
||||||
|
this.newWorkspaceName = string.Empty;
|
||||||
|
this.createWorkspaceForm.ResetValidation();
|
||||||
|
this.showCreateWorkspaceForm = false;
|
||||||
|
}
|
||||||
|
|
||||||
private void Confirm() => this.MudDialog.Close(DialogResult.Ok(this.selectedWorkspace));
|
private void Confirm() => this.MudDialog.Close(DialogResult.Ok(this.selectedWorkspace));
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user