fix: Fixed schedule workflow col
This commit is contained in:
@@ -64,7 +64,7 @@ export default function WorkflowsPage() {
|
||||
<Th>Name</Th>
|
||||
<Th>Targets</Th>
|
||||
<Th>Steps</Th>
|
||||
<Th>Schedule</Th>
|
||||
<Th>Next Run</Th>
|
||||
<Th />
|
||||
</Tr>
|
||||
</Thead>
|
||||
@@ -82,9 +82,12 @@ export default function WorkflowsPage() {
|
||||
<Td label="Steps">
|
||||
<span className="text-text-secondary">{w.steps.length}</span>
|
||||
</Td>
|
||||
<Td label="Schedule">
|
||||
{w.schedule?.enabled && <span className="rounded-sm border border-border px-1.5 py-0.5 font-mono text-[10px] text-text-secondary">{w.schedule.cron}</span>}
|
||||
{w.next_run_at && <span className="font-mono text-[11px] text-text-tertiary">next {new Date(w.next_run_at).toLocaleString()}</span>}
|
||||
<Td label="Next Run">
|
||||
{w.next_run_at && w.schedule?.enabled ? (
|
||||
<span className="font-mono text-[11px] text-text-tertiary">{new Date(w.next_run_at).toLocaleString()}</span>
|
||||
) : (
|
||||
<span className="font-mono text-[11px] text-text-tertiary">No Schedule Set</span>
|
||||
)}
|
||||
</Td>
|
||||
<Td>
|
||||
<div className="flex items-center justify-end gap-2">
|
||||
|
||||
Reference in New Issue
Block a user