fix(desktop): offer New cron from the empty scheduled-jobs detail
This commit is contained in:
@@ -717,6 +717,13 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt
|
|||||||
// No selection and no search — "Try a broader search query" here
|
// No selection and no search — "Try a broader search query" here
|
||||||
// just confused people staring at an empty panel with zero jobs.
|
// just confused people staring at an empty panel with zero jobs.
|
||||||
<PanelEmpty
|
<PanelEmpty
|
||||||
|
action={
|
||||||
|
jobs.length === 0 ? (
|
||||||
|
<Button onClick={() => setEditor({ mode: 'create' })} size="sm">
|
||||||
|
{c.newCron}
|
||||||
|
</Button>
|
||||||
|
) : undefined
|
||||||
|
}
|
||||||
description={c.emptyDescNew}
|
description={c.emptyDescNew}
|
||||||
icon="watch"
|
icon="watch"
|
||||||
title={jobs.length === 0 ? c.emptyTitleNew : undefined}
|
title={jobs.length === 0 ? c.emptyTitleNew : undefined}
|
||||||
|
|||||||
Reference in New Issue
Block a user