mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat: add warning events count next to the status badge (#828)
This commit is contained in:
parent
f4df51884c
commit
1332f718ae
18 changed files with 120 additions and 37 deletions
|
@ -3,5 +3,5 @@ import { columnHelper } from './helper';
|
|||
export const command = columnHelper.accessor((row) => row.Command, {
|
||||
header: 'Command',
|
||||
id: 'command',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
});
|
||||
|
|
|
@ -3,5 +3,5 @@ import { columnHelper } from './helper';
|
|||
export const schedule = columnHelper.accessor((row) => row.Schedule, {
|
||||
header: 'Schedule',
|
||||
id: 'schedule',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
});
|
||||
|
|
|
@ -3,5 +3,5 @@ import { columnHelper } from './helper';
|
|||
export const timezone = columnHelper.accessor((row) => row.Timezone, {
|
||||
header: 'Timezone',
|
||||
id: 'timezone',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
});
|
||||
|
|
|
@ -3,5 +3,5 @@ import { columnHelper } from './helper';
|
|||
export const command = columnHelper.accessor((row) => row.Command, {
|
||||
header: 'Command',
|
||||
id: 'command',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
});
|
||||
|
|
|
@ -3,5 +3,5 @@ import { columnHelper } from './helper';
|
|||
export const duration = columnHelper.accessor((row) => row.Duration, {
|
||||
header: 'Duration',
|
||||
id: 'duration',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
});
|
||||
|
|
|
@ -3,5 +3,5 @@ import { columnHelper } from './helper';
|
|||
export const finished = columnHelper.accessor((row) => row.FinishTime, {
|
||||
header: 'Finished',
|
||||
id: 'finished',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
});
|
||||
|
|
|
@ -7,6 +7,6 @@ export const started = columnHelper.accessor(
|
|||
{
|
||||
header: 'Started',
|
||||
id: 'started',
|
||||
cell: ({ getValue }) => getValue(),
|
||||
cell: ({ getValue }) => getValue() ?? '',
|
||||
}
|
||||
);
|
||||
|
|
|
@ -26,7 +26,7 @@ function Cell({ row: { original: item } }: CellContext<Job, string>) {
|
|||
},
|
||||
])}
|
||||
/>
|
||||
{item.Status}
|
||||
{item.Status ?? ''}
|
||||
{item.Status === 'Failed' && (
|
||||
<span className="ml-1">
|
||||
<TooltipWithChildren
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue