File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
from extras .plugins import PluginMenuButton , PluginMenuItem
16
16
from utilities .choices import ButtonColorChoices
17
17
18
+ from .release import NETBOX_RELEASE_CURRENT , NETBOX_RELEASE_210
19
+
18
20
menu_items = (
19
21
PluginMenuItem (
20
22
link = "plugins:netbox_onboarding:onboardingtask_list" ,
24
26
PluginMenuButton (
25
27
link = "plugins:netbox_onboarding:onboardingtask_add" ,
26
28
title = "Onboard" ,
27
- icon_class = "fa fa-plus" ,
29
+ icon_class = "mdi mdi-plus-thick" if NETBOX_RELEASE_CURRENT >= NETBOX_RELEASE_210 else " fa fa-plus" ,
28
30
color = ButtonColorChoices .GREEN ,
29
31
permissions = ["netbox_onboarding.add_onboardingtask" ],
30
32
),
31
33
PluginMenuButton (
32
34
link = "plugins:netbox_onboarding:onboardingtask_import" ,
33
35
title = "Bulk Onboard" ,
34
- icon_class = "fa fa-download" ,
36
+ icon_class = "mdi mdi-database-import-outline"
37
+ if NETBOX_RELEASE_CURRENT >= NETBOX_RELEASE_210
38
+ else "fa fa-download" ,
35
39
color = ButtonColorChoices .BLUE ,
36
40
permissions = ["netbox_onboarding.add_onboardingtask" ],
37
41
),
You can’t perform that action at this time.
0 commit comments