mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Fixes #4876: Fix labels for sites in staging or decommissioning status
This commit is contained in:
parent
357bf671ad
commit
0991a8edaa
@ -1,5 +1,13 @@
|
|||||||
# NetBox v2.8
|
# NetBox v2.8
|
||||||
|
|
||||||
|
## v2.8.9 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#4876](https://github.com/netbox-community/netbox/issues/4876) - Fix labels for sites in staging or decommissioning status
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v2.8.8 (2020-07-21)
|
## v2.8.8 (2020-07-21)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
@ -254,8 +254,10 @@ class Site(ChangeLoggedModel, CustomFieldModel):
|
|||||||
]
|
]
|
||||||
|
|
||||||
STATUS_CLASS_MAP = {
|
STATUS_CLASS_MAP = {
|
||||||
SiteStatusChoices.STATUS_ACTIVE: 'success',
|
|
||||||
SiteStatusChoices.STATUS_PLANNED: 'info',
|
SiteStatusChoices.STATUS_PLANNED: 'info',
|
||||||
|
SiteStatusChoices.STATUS_STAGING: 'primary',
|
||||||
|
SiteStatusChoices.STATUS_ACTIVE: 'success',
|
||||||
|
SiteStatusChoices.STATUS_DECOMMISSIONING: 'warning',
|
||||||
SiteStatusChoices.STATUS_RETIRED: 'danger',
|
SiteStatusChoices.STATUS_RETIRED: 'danger',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user