mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 02:08:28 +02:00
Enter name on create workspace
This commit is contained in:
@@ -78,7 +78,16 @@ export const WorkspaceActionsDropdown = memo(function WorkspaceDropdown({ classN
|
|||||||
{
|
{
|
||||||
label: 'Create Workspace',
|
label: 'Create Workspace',
|
||||||
leftSlot: <Icon icon="plus" />,
|
leftSlot: <Icon icon="plus" />,
|
||||||
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 });
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}, [
|
}, [
|
||||||
|
|||||||
Reference in New Issue
Block a user