fix: reflect toggle state in scheduled task Enabled/Disabled label (#1533)

The New/Edit Scheduled Task modal always showed "Enabled" next to the
task toggle regardless of its on/off state. The label now tracks
formEnabled, matching the existing Enabled/Disabled label convention
used in the Stacks settings section.
This commit is contained in:
Anso
2026-07-01 02:42:52 -04:00
committed by GitHub
parent ad8d874294
commit 90c69b1ea4
@@ -937,7 +937,12 @@ export default function ScheduledOperationsView({ filterNodeId, onClearFilter, p
<div className="flex items-center gap-2">
<TogglePill checked={formEnabled} onChange={setFormEnabled} id="task-enabled" />
<Label htmlFor="task-enabled">Enabled</Label>
<label
htmlFor="task-enabled"
className="text-sm text-stat-value cursor-pointer select-none"
>
{formEnabled ? 'Enabled' : 'Disabled'}
</label>
</div>
<label className="flex items-start gap-2 cursor-pointer">