| 92 | CancelCell.propTypes = cellPropTypes; |
| 93 | |
| 94 | function getLogsCell(pgAdmin, onViewDetailsClick) { |
| 95 | function LogsCell({ row }) { |
| 96 | return ( |
| 97 | <PgIconButton |
| 98 | size="xs" |
| 99 | icon={<DescriptionOutlinedIcon />} |
| 100 | noBorder |
| 101 | onClick={(e) => { |
| 102 | e.preventDefault(); |
| 103 | onViewDetailsClick(row.original); |
| 104 | }} |
| 105 | aria-label="View details" |
| 106 | title={gettext('View details')} |
| 107 | /> |
| 108 | ); |
| 109 | } |
| 110 | LogsCell.propTypes = cellPropTypes; |
| 111 | |
| 112 | return LogsCell; |
| 113 | } |
| 114 | |
| 115 | function StatusCell({row}) { |
| 116 | const [text, bgcolor] = ProcessStateTextAndColor[row.original.process_state]; |