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

View File

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

View File

@ -11,3 +11,7 @@
.rt-tr-group .red {
background-color: #fff4f2;
}
.rt-tr-group .green {
background-color: #f1faf3;
}