Skip to content

Commit 3f0167a

Browse files
added clearer failure if cell is failed
1 parent 3e58a79 commit 3f0167a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/tables/CellBoolean.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
faExclamationCircle,
88
} from '@fortawesome/free-solid-svg-icons'
99
import { CellBadge } from 'src/components/tables'
10+
import { CBadge } from '@coreui/react'
1011

1112
const IconWarning = () => <FontAwesomeIcon icon={faExclamationCircle} className="text-warning" />
1213
const IconError = () => <FontAwesomeIcon icon={faTimesCircle} className="text-danger" />
@@ -37,6 +38,9 @@ export default function CellBoolean({
3738
noDataIsFalse = false,
3839
}) {
3940
let normalized = cell
41+
if (cell === 'FAILED') {
42+
return <CBadge color="danger">Failed. Check Logs</CBadge>
43+
}
4044
if (typeof cell === 'boolean') {
4145
normalized = cell
4246
} else if (typeof cell === 'string') {

0 commit comments

Comments
 (0)