If no system actions were configured during rendering of the page, no system menu was added to the template.

hat caused system actions added during runtime (e.g. by API) to not show up until a re-rendering of the page.
This commit is contained in:
Salandora committed 2015-12-16 11:35:25 +01:00
1 parent eae68f04ca
commit 54f24b43f0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ def index():
enable_gcodeviewer = settings().getBoolean(["gcodeViewer", "enabled"])
enable_timelapse = (settings().get(["webcam", "snapshot"]) and settings().get(["webcam", "ffmpeg"]))
enable_systemmenu = settings().get(["system"]) is not None and settings().get(["system", "actions"]) is not None and len(settings().get(["system", "actions"])) > 0
enable_systemmenu = settings().get(["system"]) is not None and settings().get(["system", "actions"]) is not None
enable_accesscontrol = userManager is not None
preferred_stylesheet = settings().get(["devel", "stylesheet"])
locales = dict((l.language, dict(language=l.language, display=l.display_name, english=l.english_name)) for l in LOCALES)
@@ -1,4 +1,4 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-bind="visible: systemActions().length > 0">
<i class="icon-off"></i> {{ _('System') }}
<b class="caret"></b>
</a>