From 9fc0c8364124811fc727725674c66ff558c5347a Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 12 Jul 2024 14:36:20 -0400 Subject: [PATCH] Mute color of read notifications --- netbox/extras/tables/tables.py | 2 +- netbox/project-static/dist/netbox.css | Bin 551989 -> 552044 bytes .../styles/custom/_notifications.scss | 7 ++++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/netbox/extras/tables/tables.py b/netbox/extras/tables/tables.py index 4a75d3771..477fb13a5 100644 --- a/netbox/extras/tables/tables.py +++ b/netbox/extras/tables/tables.py @@ -324,7 +324,7 @@ class NotificationTable(NetBoxTable): fields = ('pk', 'icon', 'object', 'object_type', 'event_type', 'created', 'read') default_columns = ('icon', 'object', 'object_type', 'event_type', 'created', 'read') row_attrs = { - 'data-unread': lambda record: not record.read, + 'data-read': lambda record: bool(record.read), } diff --git a/netbox/project-static/dist/netbox.css b/netbox/project-static/dist/netbox.css index 62c4b9af27b3b46dbc5056d8dad2d3ed6362b68d..755e51f176ea7cedd02bf8ef3e453588abacb0a6 100644 GIT binary patch delta 51 zcmdmbL-EZG#fBEf7N!>F7M2#)7Pc1lEgYOV)46jv?aWL delta 40 wcmaEJLvia3#fBEf7N!>F7M2#)7Pc1lEgYOVOr?3#IdeGVr{7NJ;9}$g05;