Module: check_mk
Branch: master
Commit: 81cadb706bcd520b32b3967e71c28dae1207ef21
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=81cadb706bcd52…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 7 07:02:58 2018 +0100
Fixed recently damaged "empty folder" menu
Change-Id: Id369d2c88e1b426b0f9ce6df02c9e03614d661a2
---
web/htdocs/wato.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 515326e..3fb5faa 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -649,15 +649,15 @@ class ModeFolder(WatoMode):
if not self._folder.locked_hosts():
menu_items.extend([
- ("newhost", _("Create new host"), "new",
"hosts",
+ MenuItem("newhost", _("Create new host"),
"new", "hosts",
_("Add a new host to the monitoring (agent must be
installed)")),
- ("newcluster", _("Create new cluster"),
"new_cluster", "hosts",
+ MenuItem("newcluster", _("Create new cluster"),
"new_cluster", "hosts",
_("Use Check_MK clusters if an item can move from one host "
"to another at runtime"))])
if not self._folder.locked_subfolders():
menu_items.extend([
- ("newfolder", _("Create new folder"),
"newfolder", "hosts",
+ MenuItem("newfolder", _("Create new folder"),
"newfolder", "hosts",
_("Folders group your hosts, can inherit attributes and can have
permissions."))
])
@@ -12050,9 +12050,9 @@ class ModeHostTags(WatoMode, watolib.HosttagsConfiguration):
def page(self):
if not self._hosttags + self._auxtags:
MainMenu([
- ("edit_hosttag", _("Create new tag group"),
"new", "hosttags",
+ MenuItem("edit_hosttag", _("Create new tag group"),
"new", "hosttags",
_("Each host tag group will create one dropdown choice in the
host configuration.")),
- ("edit_auxtag", _("Create new auxiliary tag"),
"new", "hosttags",
+ MenuItem("edit_auxtag", _("Create new auxiliary
tag"), "new", "hosttags",
_("You can have these tags automatically added if certain
primary tags are set.")),
]).show()