feat: show certificates in a separate sidebar menu
NetBox loads only one menu per plugin, so the certificate menu is registered explicitly in SLMConfig.ready(). Without top_level_menu the certificate entry stays in the shared plugin menu items. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c4c93c5709
commit
f296a576f2
3 files changed
+17
-1
No files matched your search
@@ -47,5 +47,11 @@ class SLMConfig(PluginConfig):
|
||||
|
||||
from netbox_slm import jobs # noqa: F401
|
||||
|
||||
from netbox.plugins.registration import register_menu
|
||||
from netbox_slm import navigation
|
||||
|
||||
if hasattr(navigation, "certificate_menu"):
|
||||
register_menu(navigation.certificate_menu)
|
||||
|
||||
|
||||
config = SLMConfig
|
||||
Reference in new issue
Block a user