Skip to content

Commit

Permalink
[req-changes] Fixed colors
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Nov 13, 2024
1 parent 10ef8df commit e358125
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions openwisp_controller/config/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,15 @@ def register_dashboard_charts(self):
'applied': '#267126',
'modified': '#ffb442',
'error': '#a72d1d',
'deactivating': '#353c44',
'deactivated': '#000',
},
'labels': {
'applied': _('applied'),
'modified': _('modified'),
'error': _('error'),
'deactivating': _('deactivating'),
'deactivated': _('deactivated'),
},
},
)
Expand Down
16 changes: 14 additions & 2 deletions openwisp_controller/config/tests/test_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,20 @@ def test_config_status_chart_registered(self):
'model': 'device',
'group_by': 'config__status',
},
'colors': {'applied': '#267126', 'modified': '#ffb442', 'error': '#a72d1d'},
'labels': {'applied': 'applied', 'error': 'error', 'modified': 'modified'},
'colors': {
'applied': '#267126',
'modified': '#ffb442',
'error': '#a72d1d',
'deactivating': '#353c44',
'deactivated': '#000',
},
'labels': {
'applied': 'applied',
'error': 'error',
'modified': 'modified',
'deactivating': 'deactivating',
'deactivated': 'deactivated',
},
}
chart_config = DASHBOARD_CHARTS.get(1, None)
self.assertIsNotNone(chart_config)
Expand Down

0 comments on commit e358125

Please sign in to comment.