feat(node): Add status

This commit is contained in:
web@ppanel
2024-11-21 16:06:43 +07:00
parent 6024454d57
commit c06372b644
6 changed files with 43 additions and 0 deletions
@@ -107,6 +107,25 @@ export default function NodeTable() {
);
},
},
{
accessorKey: 'last',
header: t('status'),
cell: ({ row }) => {
const { last } = row.original;
return last ? (
<>
<Badge>{t('normal')}</Badge>
<span className='ml-2'>
{t('onlineCount')}: {last.count}
</span>
</>
) : (
<Badge variant='destructive'>{t('abnormal')}</Badge>
);
},
},
{
accessorKey: 'name',
header: t('name'),