Skip to content

Commit

Permalink
Disable the copy view for the main menu admin
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmoreton committed Dec 23, 2024
1 parent 8f6d8a0 commit 9b8d14c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wagtailmenus/menuadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ class MainMenuAdmin(SnippetViewSet):
edit_template_name = "wagtailmenus/mainmenu_edit.html"
error_message = _("The menu could not be saved due to errors.")

copy_view_enabled = False

edit_handler = TabbedInterface([
ObjectList(panels.main_menu_content_panels, heading=_("Content")),
ObjectList(panels.menu_settings_panels, heading=_("Settings"),
Expand Down

0 comments on commit 9b8d14c

Please sign in to comment.