Sfoglia il codice sorgente

16838 show extra_buttons if no actions defined

Arthur Hanson 1 anno fa
parent
commit
4f60b26bf3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      netbox/netbox/tables/columns.py

+ 1 - 1
netbox/netbox/tables/columns.py

@@ -249,7 +249,7 @@ class ActionsColumn(tables.Column):
 
     def render(self, record, table, **kwargs):
         # Skip dummy records (e.g. available VLANs) or those with no actions
-        if not getattr(record, 'pk', None) or not self.actions:
+        if not getattr(record, 'pk', None) or not (self.actions or self.extra_buttons):
             return ''
 
         model = table.Meta.model