MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getLogsCell

Function getLogsCell

web/pgadmin/misc/bgprocess/static/js/Processes.jsx:94–113  ·  view source on GitHub ↗
(pgAdmin, onViewDetailsClick)

Source from the content-addressed store, hash-verified

92CancelCell.propTypes = cellPropTypes;
93
94function 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
115function StatusCell({row}) {
116 const [text, bgcolor] = ProcessStateTextAndColor[row.original.process_state];

Callers 1

ProcessesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected