diff --git a/src/lib/components/automations/AutomationMenu.svelte b/src/lib/components/automations/AutomationMenu.svelte index 2f97cb9bdf..adc13c9047 100644 --- a/src/lib/components/automations/AutomationMenu.svelte +++ b/src/lib/components/automations/AutomationMenu.svelte @@ -15,7 +15,7 @@ export let deleteHandler: Function; export let onClose: Function = () => {}; - let show = false; + export let show = false; {#each automations as automation (automation.id)} - { + goto(`/automations/${automation.id}`); + }} + on:keydown={(e) => { + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault(); + goto(`/automations/${automation.id}`); + } + }} >
-
- {automation.name} -
+ +
+ {automation.name} +
+
{formatRRule(automation.data.rrule)}
-
+
{ goto(`/automations/${automation.id}`); }} @@ -573,11 +590,20 @@ deleteTarget = automation; showDeleteConfirm = true; }} + onClose={() => { + openAutomationMenuId = null; + }} > @@ -585,6 +611,7 @@
-
+
{/each}