mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 05:21:55 -06:00
Modify offline status color for vm
This commit is contained in:
parent
ca56fc709a
commit
bc7f5fb33a
@ -9,6 +9,7 @@
|
||||
* [#4113](https://github.com/netbox-community/netbox/issues/4113) - Add bulk edit functionality for device type components
|
||||
* [#4116](https://github.com/netbox-community/netbox/issues/4116) - Enable bulk edit and delete functions for device component list views
|
||||
* [#4129](https://github.com/netbox-community/netbox/issues/4129) - Add buttons to delete individual device type components
|
||||
* [#4093](https://github.com/netbox-community/netbox/issues/4093) - Add decommissioning status for VMs
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
@ -37,7 +38,6 @@
|
||||
* [#3313](https://github.com/netbox-community/netbox/issues/3313) - Toggle config context display between JSON and YAML
|
||||
* [#3886](https://github.com/netbox-community/netbox/issues/3886) - Enable assigning config contexts by cluster and cluster group
|
||||
* [#4051](https://github.com/netbox-community/netbox/issues/4051) - Disable the `makemigrations` management command
|
||||
* [#4093](https://github.com/netbox-community/netbox/issues/4093) - Add decommissioning status for VMs
|
||||
|
||||
## Bug Fixes
|
||||
|
||||
|
@ -24,7 +24,6 @@ class VirtualMachineStatusChoices(ChoiceSet):
|
||||
STATUS_OFFLINE: 0,
|
||||
STATUS_ACTIVE: 1,
|
||||
STATUS_STAGED: 3,
|
||||
STATUS_DECOMMISSIONING: 4,
|
||||
}
|
||||
|
||||
|
||||
|
@ -268,7 +268,7 @@ class VirtualMachine(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
|
||||
|
||||
STATUS_CLASS_MAP = {
|
||||
VirtualMachineStatusChoices.STATUS_ACTIVE: 'success',
|
||||
VirtualMachineStatusChoices.STATUS_OFFLINE: 'warning',
|
||||
VirtualMachineStatusChoices.STATUS_OFFLINE: 'danger',
|
||||
VirtualMachineStatusChoices.STATUS_STAGED: 'primary',
|
||||
VirtualMachineStatusChoices.STATUS_DECOMMISSIONING: 'warning',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user