) => {
const { onOpenContext } = this.props;
e.stopPropagation();
onOpenContext(this.props.row);
};
onLogRowClick = (e: React.SyntheticEvent) => {
e.stopPropagation();
};
getLogText = () => {
const { row, prettifyLogMessage } = this.props;
const { raw } = row;
return restructureLog(raw, prettifyLogMessage);
};
render() {
const { row, wrapLogMessage, prettifyLogMessage, showContextToggle, styles } = this.props;
const { hasAnsi, raw } = row;
const restructuredEntry = restructureLog(raw, prettifyLogMessage);
const shouldShowContextToggle = showContextToggle ? showContextToggle(row) : false;
return (
<>
{
// When context is open, the position has to be NOT relative. // Setting the postion as inline-style to
// overwrite the more sepecific style definition from `styles.logsRowMessage`.
}
|
{shouldShowContextToggle && (
)}
|
>
);
}
}