Avoid the CORE-POS menu if not using buefy theme
b/c jquery theme does not support nested sub-menus
This commit is contained in:
parent
22aad5e31f
commit
133c575e9e
|
@ -189,8 +189,11 @@ def simple_menus(request):
|
||||||
catapult_menu = make_catapult_menu(request)
|
catapult_menu = make_catapult_menu(request)
|
||||||
|
|
||||||
if include_corepos:
|
if include_corepos:
|
||||||
from tailbone_corepos.menus import make_corepos_menu
|
corepos_menu = None
|
||||||
corepos_menu = make_corepos_menu(request)
|
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:
|
if include_locsms:
|
||||||
from tailbone_locsms.menus import make_locsms_menu
|
from tailbone_locsms.menus import make_locsms_menu
|
||||||
|
@ -322,7 +325,7 @@ def simple_menus(request):
|
||||||
|
|
||||||
if include_catapult:
|
if include_catapult:
|
||||||
menus.append(catapult_menu)
|
menus.append(catapult_menu)
|
||||||
if include_corepos:
|
if include_corepos and corepos_menu:
|
||||||
menus.append(corepos_menu)
|
menus.append(corepos_menu)
|
||||||
if include_locsms:
|
if include_locsms:
|
||||||
menus.append(locsms_menu)
|
menus.append(locsms_menu)
|
||||||
|
|
Loading…
Reference in a new issue