fix(desktop): offer New cron from the empty scheduled-jobs detail

This commit is contained in:
Adolan
2026-09-26 09:26:23 -07:00
committed by brooklyn!
parent 6b512010ec
commit 0559c367ef

View File

@@ -717,6 +717,13 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt
// No selection and no search — "Try a broader search query" here
// just confused people staring at an empty panel with zero jobs.
<PanelEmpty
action={
jobs.length === 0 ? (
<Button onClick={() => setEditor({ mode: 'create' })} size="sm">
{c.newCron}
</Button>
) : undefined
}
description={c.emptyDescNew}
icon="watch"
title={jobs.length === 0 ? c.emptyTitleNew : undefined}