Skip to content

Commit

Permalink
Add new columns to view
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPeck committed Nov 22, 2024
1 parent eb9633d commit 19ddaa8
Showing 1 changed file with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,69 @@ class UsersList extends React.Component {
return projectString.indexOf(filter.value.toLowerCase()) >= 0;
},
},
{
Header: 'AA Affiliation',
accessor: 'aaAffiliation',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.aaAffiliation || '<<none>>';
},
},
{
Header: 'PI Name',
accessor: 'piName',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.piName || '<<none>>';
},
},
{
Header: 'Project Name',
accessor: 'projectName',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.projectName || '<<none>>';
},
},
{
Header: 'Study Admin',
accessor: 'studyAdmin',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.studyAdmin.join(', ') || '<<none>>';
},
},
{
Header: 'Study Read/Write',
accessor: 'studyReadWrite',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.studyReadWrite.join(', ') || '<<none>>';
},
},
{
Header: 'Study Read',
accessor: 'studyRead',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.studyRead.join(', ') || '<<none>>';
},
},
{
Header: 'Data Source',
accessor: 'dataSource',
style: { whiteSpace: 'unset' },
Cell: row => {
const user = row.original;
return user.dataSource || '<<none>>';
},
},
{
Header: 'Status',
accessor: 'status',
Expand Down

0 comments on commit 19ddaa8

Please sign in to comment.