From ab5681c7ad18fee2504d28b48e2e4b4c5bdee67e Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 9 Apr 2023 12:27:02 -0700 Subject: [PATCH] Enter name on create workspace --- src-web/components/WorkspaceActionsDropdown.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src-web/components/WorkspaceActionsDropdown.tsx b/src-web/components/WorkspaceActionsDropdown.tsx index 769cb913..19115ef3 100644 --- a/src-web/components/WorkspaceActionsDropdown.tsx +++ b/src-web/components/WorkspaceActionsDropdown.tsx @@ -78,7 +78,16 @@ export const WorkspaceActionsDropdown = memo(function WorkspaceDropdown({ classN { label: 'Create Workspace', leftSlot: , - onSelect: () => createWorkspace.mutate({ name: 'Workspace' }), + onSelect: async () => { + const name = await prompt({ + name: 'name', + label: 'Name', + defaultValue: '', + description: 'Enter a name for the new workspace', + title: 'Create Workspace', + }); + createWorkspace.mutate({ name }); + }, }, ]; }, [