Module: check_mk
Branch: master
Commit: 972c896248150e97878a8e70d00bf96553961954
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=972c896248150e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 26 14:48:35 2018 +0200
6719 FIX Simplified user setting: Temporarily disable notifications
The user profile setting for temporarily disabling all notifications was
a set of two nested checkboxes which both had to be checked for
disabling the notifications. This has now been fixed to be only a single
checkbox again.
Change-Id: Ie5131f189bbd385dd9153e000db89a9c9f5377a9
---
.werks/6719 | 13 +++++++++++++
cmk/gui/plugins/userdb/user_attributes.py | 5 ++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/6719 b/.werks/6719
new file mode 100644
index 0000000..0d37c60
--- /dev/null
+++ b/.werks/6719
@@ -0,0 +1,13 @@
+Title: Simplified user setting: Temporarily disable notifications
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1537964762
+
+The user profile setting for temporarily disabling all notifications was a set
+of two nested checkboxes which both had to be checked for disabling the
+notifications. This has now been fixed to be only a single checkbox again.
diff --git a/cmk/gui/plugins/userdb/user_attributes.py
b/cmk/gui/plugins/userdb/user_attributes.py
index 171ee5f..af69171 100644
--- a/cmk/gui/plugins/userdb/user_attributes.py
+++ b/cmk/gui/plugins/userdb/user_attributes.py
@@ -104,7 +104,10 @@ class DisableNotificationsUserAttribute(UserAttribute):
"sure that you know what you do. Moreover you can customize a
timerange "
"within no notifications are generated."),
elements = [
- ("disable", Checkbox(title=_("Temporarily disable
<b>all</b> notifications!"), label=_("Disable"))),
+ ("disable", FixedValue(True,
+ title=_("Temporarily disable <b>all</b>
notifications!"),
+ totext="",
+ )),
("timerange", Tuple(title=_("Customize timerange"),
elements = [
AbsoluteDate(title=_("From:"), include_time=True),
AbsoluteDate(title=_("To:"), include_time=True),