Skip to content

Commit

Permalink
added clearer failure if cell is failed
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 16, 2023
1 parent 3e58a79 commit 3f0167a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/tables/CellBoolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
faExclamationCircle,
} from '@fortawesome/free-solid-svg-icons'
import { CellBadge } from 'src/components/tables'
import { CBadge } from '@coreui/react'

const IconWarning = () => <FontAwesomeIcon icon={faExclamationCircle} className="text-warning" />
const IconError = () => <FontAwesomeIcon icon={faTimesCircle} className="text-danger" />
Expand Down Expand Up @@ -37,6 +38,9 @@ export default function CellBoolean({
noDataIsFalse = false,
}) {
let normalized = cell
if (cell === 'FAILED') {
return <CBadge color="danger">Failed. Check Logs</CBadge>
}
if (typeof cell === 'boolean') {
normalized = cell
} else if (typeof cell === 'string') {
Expand Down

0 comments on commit 3f0167a

Please sign in to comment.