Only show CMS toolbar item when in app
This commit is contained in:
parent
0722779a2f
commit
5cd2562cc7
1 changed files with 1 additions and 4 deletions
|
|
@ -9,10 +9,7 @@ from . import conf
|
||||||
|
|
||||||
class GovPlanToolbar(CMSToolbar):
|
class GovPlanToolbar(CMSToolbar):
|
||||||
def populate(self):
|
def populate(self):
|
||||||
if (
|
if not self.is_current_app:
|
||||||
self.request.current_page
|
|
||||||
and self.request.current_page.application_namespace != "govplan"
|
|
||||||
):
|
|
||||||
return
|
return
|
||||||
menu = self.toolbar.get_or_create_menu("govplan-menu", conf.GOVPLAN_NAME)
|
menu = self.toolbar.get_or_create_menu("govplan-menu", conf.GOVPLAN_NAME)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue