Skip to content

The open-source app everyone uses to manage agents at work

Add missing data-slot="toggle" to Routines toggle buttons

dottae61f00d4c156
diff --git a/ui/src/pages/RoutineDetail.tsx b/ui/src/pages/RoutineDetail.tsx
index f357878d3c..387e31f738 100644
--- a/ui/src/pages/RoutineDetail.tsx
+++ b/ui/src/pages/RoutineDetail.tsx
@@ -647,6 +647,7 @@ export function RoutineDetail() {
<button
type="button"
role="switch"
+ data-slot="toggle"
aria-checked={automationEnabled}
aria-label={automationEnabled ? "Pause automatic triggers" : "Enable automatic triggers"}
disabled={automationToggleDisabled}
diff --git a/ui/src/pages/Routines.tsx b/ui/src/pages/Routines.tsx
index 7a46f16d37..a0d59d0340 100644
--- a/ui/src/pages/Routines.tsx
+++ b/ui/src/pages/Routines.tsx
@@ -580,6 +580,7 @@ export function Routines() {
<button
type="button"
role="switch"
+ data-slot="toggle"
aria-checked={enabled}
aria-label={enabled ? `Disable ${routine.title}` : `Enable ${routine.title}`}
disabled={isStatusPending || isArchived}