Skip to content

Commit

Permalink
refactor: change notification history text and background color
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Jun 12, 2024
1 parent 4b26e49 commit f918d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NotificationHistoryList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
slot-scope="props"
>
<tr
:style="{'background-color': severityColor(props.item.confirmed, props.item.sent)}"
:style="{'background-color': severityColor(props.item.confirmed, props.item.sent), 'color': 'black'}"
>
<td>{{ props.item.id }}</td>
<td>{{ props.item.sent }}</td>
Expand Down Expand Up @@ -160,7 +160,7 @@ export default {
},
severityColor(confirmed, sent) {
const config = this.$store.getters.getConfig('colors')
return config.severity[confirmed ? 'ok' : sent ? 'warning' : 'critical'] || 'white'
return config.severity[confirmed ? 'ok' : sent ? 'normal' : 'critical'] || 'white'
},
findAlert(id){
this.$router.push({ path: `/alerts?q=id:"${id}"` })
Expand Down

0 comments on commit f918d49

Please sign in to comment.