Add global watch failure notification setting.

pull/1945/head
Patrick Sean Klein 5 months ago
parent 22702ff123
commit 89a47ae73f
No known key found for this signature in database
GPG Key ID: B6D50F39A56F6906

@ -592,6 +592,7 @@ class globalSettingsApplicationForm(commonSettingsForm):
render_kw={"style": "width: 5em;"}, render_kw={"style": "width: 5em;"},
validators=[validators.NumberRange(min=0, validators=[validators.NumberRange(min=0,
message="Should contain zero or more attempts")]) message="Should contain zero or more attempts")])
notification_notify_on_failure = BooleanField('Send a notification on watch failure', default=False)
class globalSettingsForm(Form): class globalSettingsForm(Form):

@ -44,6 +44,9 @@
Set to <strong>0</strong> to disable Set to <strong>0</strong> to disable
</span> </span>
</div> </div>
<div class="pure-control-group">
{{ render_checkbox_field(form.application.form.notification_notify_on_failure) }}
</div>
<div class="pure-control-group"> <div class="pure-control-group">
{% if not hide_remove_pass %} {% if not hide_remove_pass %}
{% if current_user.is_authenticated %} {% if current_user.is_authenticated %}

Loading…
Cancel
Save