mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Mute color of read notifications
This commit is contained in:
parent
bfd0fa49a2
commit
9fc0c83641
@ -324,7 +324,7 @@ class NotificationTable(NetBoxTable):
|
|||||||
fields = ('pk', 'icon', 'object', 'object_type', 'event_type', 'created', 'read')
|
fields = ('pk', 'icon', 'object', 'object_type', 'event_type', 'created', 'read')
|
||||||
default_columns = ('icon', 'object', 'object_type', 'event_type', 'created', 'read')
|
default_columns = ('icon', 'object', 'object_type', 'event_type', 'created', 'read')
|
||||||
row_attrs = {
|
row_attrs = {
|
||||||
'data-unread': lambda record: not record.read,
|
'data-read': lambda record: bool(record.read),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BIN
netbox/project-static/dist/netbox.css
vendored
BIN
netbox/project-static/dist/netbox.css
vendored
Binary file not shown.
@ -1,8 +1,9 @@
|
|||||||
@use 'sass:map';
|
@use 'sass:map';
|
||||||
|
|
||||||
// Highlight unread notifications
|
// Mute read notifications
|
||||||
tr[data-unread=True] {
|
tr[data-read=True] {
|
||||||
td {
|
td {
|
||||||
background-color: rgba(map.get($theme-colors, "green"), 0.15);
|
background-color: var(--#{$prefix}bg-surface-secondary);
|
||||||
|
color: $text-muted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user