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:
Mike Salvatore 2021-07-13 12:09:47 -04:00
parent 5aa5facf1f
commit 50cb687769
1 changed files with 6 additions and 2 deletions

View File

@ -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>);