forked from p15670423/monkey
Island: Change colors of ransomware table text
If some files were encrypted, warning text color should be used. If all files were encrypted, danger text color should be used.
This commit is contained in:
parent
5aa5facf1f
commit
50cb687769
|
@ -54,9 +54,13 @@ function renderFileEncryptionStats(successful: number, total: number) {
|
|||
let textClassName = ''
|
||||
|
||||
if(successful > 0) {
|
||||
textClassName = 'text-success'
|
||||
} else {
|
||||
if (successful === total) {
|
||||
textClassName = 'text-danger'
|
||||
} else {
|
||||
textClassName = 'text-warning'
|
||||
}
|
||||
} else {
|
||||
textClassName = 'text-success'
|
||||
}
|
||||
|
||||
return (<p className={textClassName}>{successful} out of {total}</p>);
|
||||
|
|
Loading…
Reference in New Issue