Prompt folder name on create

This commit is contained in:
Gregory Schier
2024-02-26 07:14:27 -08:00
parent 5a3596478a
commit eae1177365
3 changed files with 31 additions and 17 deletions

View File

@@ -148,18 +148,7 @@ export const WorkspaceActionsDropdown = memo(function WorkspaceActionsDropdown({
key: 'create-workspace',
label: 'New Workspace',
leftSlot: <Icon icon="plus" />,
onSelect: async () => {
const name = await prompt({
id: 'new-workspace',
name: 'name',
label: 'Name',
defaultValue: 'My Workspace',
title: 'New Workspace',
confirmLabel: 'Create',
placeholder: 'My Workspace',
});
createWorkspace.mutate({ name });
},
onSelect: () => createWorkspace.mutate({}),
},
];
}, [