Skip to content

Commit

Permalink
webapp: use bg-body for alert and anomaly
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Feb 16, 2024
1 parent 7516780 commit 25e6f5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/static/assets/js/flowdisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class FlowDisplay {
flow.alert?.forEach(data => {
if (data.signature !== 'tag') {
const cardEl = document.createElement('div')
cardEl.classList.add('card', 'm-3', 'bg-secondary-subtle', 'font-monospace', `border-${data.color}`)
cardEl.classList.add('card', 'm-3', 'bg-body', 'font-monospace', `border-${data.color}`)
const cardHeader = document.createElement('div')
cardHeader.classList.add('card-header')
cardHeader.textContent = data.signature
Expand All @@ -170,7 +170,7 @@ class FlowDisplay {
})
flow.anomaly?.forEach(data => {
const cardEl = document.createElement('div')
cardEl.classList.add('card', 'm-3', 'bg-secondary-subtle', 'font-monospace', 'border-warning')
cardEl.classList.add('card', 'm-3', 'bg-body', 'font-monospace', 'border-warning')
const cardHeader = document.createElement('div')
cardHeader.classList.add('card-header')
cardHeader.textContent = `Anomaly! ${JSON.stringify(data)}`
Expand Down

0 comments on commit 25e6f5f

Please sign in to comment.