From 133c575e9e89164c8477800a89898dfcc99a11ab Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 8 Dec 2021 19:15:50 -0600 Subject: [PATCH] Avoid the CORE-POS menu if not using buefy theme b/c jquery theme does not support nested sub-menus --- theo/web/menus.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/theo/web/menus.py b/theo/web/menus.py index 78fbea3..76fca91 100644 --- a/theo/web/menus.py +++ b/theo/web/menus.py @@ -189,8 +189,11 @@ def simple_menus(request): catapult_menu = make_catapult_menu(request) if include_corepos: - from tailbone_corepos.menus import make_corepos_menu - corepos_menu = make_corepos_menu(request) + corepos_menu = None + from tailbone.util import should_use_buefy + if should_use_buefy(request): + from tailbone_corepos.menus import make_corepos_menu + corepos_menu = make_corepos_menu(request) if include_locsms: from tailbone_locsms.menus import make_locsms_menu @@ -322,7 +325,7 @@ def simple_menus(request): if include_catapult: menus.append(catapult_menu) - if include_corepos: + if include_corepos and corepos_menu: menus.append(corepos_menu) if include_locsms: menus.append(locsms_menu)