mirror of https://github.com/portainer/portainer
21 lines
584 B
TypeScript
21 lines
584 B
TypeScript
import { createColumnHelper } from '@tanstack/react-table';
|
|
|
|
import { isoDateFromTimestamp } from '@/portainer/filters/filters';
|
|
|
|
import { buildNameColumn } from '@@/datatables/buildNameColumn';
|
|
|
|
import { EdgeJob } from '../types';
|
|
|
|
const columnHelper = createColumnHelper<EdgeJob>();
|
|
|
|
export const columns = [
|
|
buildNameColumn<EdgeJob>('Name', '.job', 'edge-job-name'),
|
|
columnHelper.accessor('CronExpression', {
|
|
header: 'Cron Expression',
|
|
}),
|
|
columnHelper.accessor('Created', {
|
|
header: 'Created',
|
|
cell: ({ getValue }) => isoDateFromTimestamp(getValue()),
|
|
}),
|
|
];
|