Color Coded alert levels in alerts history

pull/698/head
Alex P 2016-12-15 14:43:15 -08:00
parent bc68d46c70
commit f928c1be79
3 changed files with 11 additions and 1 deletions

View File

@ -85,7 +85,7 @@ const AlertsTable = React.createClass({
return (
<tr key={`${name}-${time}-${host}-${value}`}>
<td className="monotype">{name}</td>
<td className="monotype">{level}</td>
<td className={`monotype alert-level-${level.toLowerCase()}`}>{level}</td>
<td className="monotype">{(new Date(Number(time)).toISOString())}</td>
<td className="monotype">{host}</td>
<td className="monotype">{value}</td>

View File

@ -0,0 +1,9 @@
.alert-level-critical {
color: $c-dreamsicle !important;
}
.alert-level-warning {
color: #fdcf30 !important;
}
.alert-level-ok {
color: $c-rainforest !important;
}

View File

@ -18,6 +18,7 @@
@import 'hosts';
@import 'kapacitor';
@import 'influx-tooltips';
@import 'alerts';
// Because of some issues with sharing styles across multiple webpack bundles,
// we have to import other scss files here instead of in their corresponding