From 0703fd053189a0f7672edd90ae32c181b466457f Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 16 Jul 2024 15:28:14 -0400 Subject: [PATCH] Revert dashboard changes --- netbox/extras/choices.py | 2 -- netbox/extras/constants.py | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/netbox/extras/choices.py b/netbox/extras/choices.py index 027c18c1d..8959ba0ab 100644 --- a/netbox/extras/choices.py +++ b/netbox/extras/choices.py @@ -276,7 +276,6 @@ class DashboardWidgetColorChoices(ChoiceSet): GRAY = 'gray' BLACK = 'black' WHITE = 'white' - NETBOXTEAL = 'primary' CHOICES = ( (BLUE, _('Blue')), @@ -292,7 +291,6 @@ class DashboardWidgetColorChoices(ChoiceSet): (GRAY, _('Gray')), (BLACK, _('Black')), (WHITE, _('White')), - (NETBOXTEAL, _('NetBox Teal')), ) diff --git a/netbox/extras/constants.py b/netbox/extras/constants.py index aba6ee513..005f6863d 100644 --- a/netbox/extras/constants.py +++ b/netbox/extras/constants.py @@ -26,7 +26,7 @@ DEFAULT_DASHBOARD = [ 'width': 4, 'height': 5, 'title': 'Bookmarks', - 'color': 'primary', + 'color': 'orange', }, { 'widget': 'extras.ObjectCountsWidget', @@ -46,7 +46,7 @@ DEFAULT_DASHBOARD = [ 'width': 4, 'height': 2, 'title': 'Welcome!', - 'color': 'primary', + 'color': 'green', 'config': { 'content': ( 'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing ' @@ -128,6 +128,7 @@ DEFAULT_DASHBOARD = [ 'width': 12, 'height': 5, 'title': 'Change Log', + 'color': 'blue', 'config': { 'model': 'core.objectchange', 'page_size': 25,