forked from p15670423/monkey
UI: Show ransomware encrypted file count only in red or black
This commit is contained in:
parent
e241d46263
commit
7ae46339e0
|
@ -54,13 +54,9 @@ function renderFileEncryptionStats(successful: number, total: number) {
|
|||
let textClassName = ''
|
||||
|
||||
if(successful > 0) {
|
||||
if (successful === total) {
|
||||
textClassName = 'text-danger'
|
||||
} else {
|
||||
textClassName = 'text-warning'
|
||||
}
|
||||
} else {
|
||||
textClassName = 'text-success'
|
||||
textClassName = 'text-dark'
|
||||
}
|
||||
|
||||
return (<p className={textClassName}>{successful} out of {total}</p>);
|
||||
|
|
Loading…
Reference in New Issue