mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-11 03:36:49 +02:00
Fixed auto-focus in prompt and env dropdown
This commit is contained in:
@@ -36,21 +36,17 @@ export const EnvironmentActionsDropdown = memo(function EnvironmentActionsDropdo
|
||||
[activeEnvironment?.id],
|
||||
),
|
||||
{ type: 'separator', label: 'Environments' },
|
||||
...((environments.length > 0
|
||||
? [
|
||||
{
|
||||
key: 'edit',
|
||||
label: 'Manage Environments',
|
||||
leftSlot: <Icon icon="gear" />,
|
||||
onSelect: async () => {
|
||||
dialog.show({
|
||||
title: 'Environments',
|
||||
render: () => <EnvironmentEditDialog />,
|
||||
});
|
||||
},
|
||||
},
|
||||
]
|
||||
: []) as DropdownItem[]),
|
||||
{
|
||||
key: 'edit',
|
||||
label: 'Manage Environments',
|
||||
leftSlot: <Icon icon="gear" />,
|
||||
onSelect: async () => {
|
||||
dialog.show({
|
||||
title: 'Environments',
|
||||
render: () => <EnvironmentEditDialog />,
|
||||
});
|
||||
},
|
||||
},
|
||||
],
|
||||
[activeEnvironment, dialog, environments, routes],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user