feat(ticket): show open and closed status in ticket list

This commit is contained in:
2026-08-06 17:10:10 +05:30
parent 8ab9240b77
commit c8899c191e
4 changed files with 15 additions and 0 deletions

View File

@@ -73,6 +73,17 @@ export function useTicketColumns(): ColumnDef<TicketListItem>[] {
meta: { disableTruncate: true },
cell: ({ row }) => <TicketAttention ticket={row.original} />,
},
{
accessorKey: 'is_closed',
header: 'Status',
size: 100,
meta: { disableTruncate: true },
cell: ({ row }) => (
<Badge variant={row.original.is_closed ? 'secondary' : 'default'}>
{row.original.is_closed ? 'Closed' : 'Open'}
</Badge>
),
},
{
id: 'created_by',
header: 'Uploaded By',