Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/johnduprey/CIPP into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Nov 3, 2023
2 parents fd8d393 + fcc0a0b commit 2ce6d21
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 183 deletions.
3 changes: 3 additions & 0 deletions src/components/tables/CellGenericFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export const cellGenericFormatter =
if (cell.toLowerCase() === 'failed') {
return <CBadge color="danger">{CellTip('Failed to retrieve from API')}</CBadge>
}
if (cell.toLowerCase().startsWith('http')) {
return <a href={`${cell}`}>URL</a>
}
return CellTip(cell)
}
if (typeof cell === 'number') {
Expand Down
Loading

0 comments on commit 2ce6d21

Please sign in to comment.