diff --git a/djangocms_navigation/admin.py b/djangocms_navigation/admin.py index 1a0cc4171..8618012ae 100644 --- a/djangocms_navigation/admin.py +++ b/djangocms_navigation/admin.py @@ -200,6 +200,15 @@ def _get_main_navigation_link(self, obj, request, disabled=False): if obj.menu.main_navigation: disabled = True + if CMS_41: + return self.admin_action_button( + url=main_navigation_url, + icon="home", + title=_("Make Main Navigation"), + name="make-main-navigation", + disabled=disabled, + ) + return render_to_string( "admin/djangocms_navigation/icons/main_navigation.html", {"url": main_navigation_url, "disabled": disabled}