feat: add project to journal

This commit is contained in:
elforjani13
2022-08-30 18:49:05 +02:00
parent 6b37dcd8ae
commit dd264eed65
6 changed files with 39 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ import {
InputGroupCell,
ContactsListFieldCell,
BranchesListFieldCell,
ProjectsListFieldCell,
} from '@/components/DataTableCells';
import { CellType, Features, Align } from '@/constants';
@@ -127,6 +128,21 @@ export const useJournalTableEntriesColumns = () => {
disableSortBy: true,
width: 120,
},
...(featureCan(Features.Branches)
? [
{
Header: intl.get('project'),
id: 'project_id',
accessor: 'project_id',
Cell: ProjectsListFieldCell,
className: 'project_id',
disableSortBy: true,
width: 120,
},
]
: []),
...(featureCan(Features.Branches)
? [
{