diff options
Diffstat (limited to 'web/react/components/audit_table.jsx')
-rw-r--r-- | web/react/components/audit_table.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/audit_table.jsx b/web/react/components/audit_table.jsx index ce547eb45..49892ff98 100644 --- a/web/react/components/audit_table.jsx +++ b/web/react/components/audit_table.jsx @@ -213,11 +213,16 @@ class AuditTable extends React.Component { sContent = <td>{auditInfo.sessionId}</td>; } + let descStyle = {}; + if (auditInfo.desc.toLowerCase().indexOf('fail') !== -1) { + descStyle.color = 'red'; + } + accessList[i] = ( <tr key={audit.id}> <td>{auditInfo.timestamp}</td> {uContent} - <td>{auditInfo.desc}</td> + <td style={descStyle}>{auditInfo.desc}</td> {iContent} {sContent} </tr> |