mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
17186 change choice to default
This commit is contained in:
parent
0f7b12f939
commit
a98b6a6fdf
@ -4,6 +4,7 @@ from django.utils.safestring import mark_safe
|
||||
|
||||
from core.models import ObjectType
|
||||
from extras.models import CustomLink
|
||||
from netbox.choices import ButtonColorChoices
|
||||
|
||||
|
||||
register = template.Library()
|
||||
@ -61,7 +62,7 @@ def custom_links(context, obj):
|
||||
else:
|
||||
try:
|
||||
if rendered := cl.render(link_context):
|
||||
if cl.button_class == "default":
|
||||
if cl.button_class == ButtonColorChoices.DEFAULT:
|
||||
button_class = 'outline-secondary'
|
||||
else:
|
||||
button_class = cl.button_class
|
||||
|
Loading…
Reference in New Issue
Block a user