modify my task
This commit is contained in:
@@ -70,6 +70,23 @@ export const createColumns = (callbacks?: ColumnCallbacks): ColumnDef<Task>[] =>
|
||||
return h('div', { class: 'font-medium' }, row.getValue('name'))
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'project_name',
|
||||
header: ({ column }) => {
|
||||
return h(
|
||||
Button,
|
||||
{
|
||||
variant: 'ghost',
|
||||
onClick: () => column.toggleSorting(column.getIsSorted() === 'asc'),
|
||||
},
|
||||
() => ['Project', h(ArrowUpDown, { class: 'ml-2 h-4 w-4' })]
|
||||
)
|
||||
},
|
||||
cell: ({ row }) => {
|
||||
const projectName = row.getValue('project_name') as string | undefined
|
||||
return h('div', { class: 'text-sm' }, projectName || '-')
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'task_type',
|
||||
header: ({ column }) => {
|
||||
|
||||
Reference in New Issue
Block a user