summaryrefslogtreecommitdiffstats
path: root/web/react/components/audit_table.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-02-04 10:44:35 -0500
committerJoramWilander <jwawilander@gmail.com>2016-02-04 13:35:44 -0500
commit7e8389cd0538fb6aff3931fb23714158d3f24449 (patch)
tree5cebeae610862c999cec75c76777a636cf97e397 /web/react/components/audit_table.jsx
parent66a5bdba2e622dc542d1add3acd50a5f2549335a (diff)
downloadchat-7e8389cd0538fb6aff3931fb23714158d3f24449.tar.gz
chat-7e8389cd0538fb6aff3931fb23714158d3f24449.tar.bz2
chat-7e8389cd0538fb6aff3931fb23714158d3f24449.zip
Turn failed audit descriptions red
Diffstat (limited to 'web/react/components/audit_table.jsx')
-rw-r--r--web/react/components/audit_table.jsx7
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>