feat(editor): Add scrolling to API keys list (no-changelog) (#13658)

This commit is contained in:
Ricardo Espinoza
2025-03-04 12:43:02 +01:00
committed by GitHub
parent 2a5738aebe
commit 2c03f8640e
2 changed files with 71 additions and 46 deletions

View File

@@ -198,6 +198,16 @@ const onSelect = (value: number) => {
expirationDate.value = '';
showExpirationDateSelector.value = false;
};
async function handleEnterKey(event: KeyboardEvent) {
if (event.key === 'Enter') {
if (props.mode === 'new') {
await onSave();
} else {
await onEdit();
}
}
}
</script>
<template>
@@ -212,7 +222,7 @@ const onSelect = (value: number) => {
:show-close="true"
>
<template #content>
<div>
<div @keyup.enter="handleEnterKey">
<n8n-card v-if="newApiKey" class="mb-4xs">
<CopyInput
:label="newApiKey.label"