Added green background for whitelist rows

This commit is contained in:
Ildar Kamalov 2018-10-30 18:10:05 +03:00
parent 800002f83d
commit 49ff0d2b9a
2 changed files with 16 additions and 1 deletions
client/src/components/Logs

View file

@ -223,8 +223,19 @@ class Logs extends Component {
if (!rowInfo) {
return {};
}
if (rowInfo.original.reason.indexOf('Filtered') === 0) {
return {
className: 'red',
};
} else if (rowInfo.original.reason === 'NotFilteredWhiteList') {
return {
className: 'green',
};
}
return {
className: (rowInfo.original.reason.indexOf('Filtered') === 0 ? 'red' : ''),
className: '',
};
}}
/>);