From 89a47ae73ff130e6d0b244440486be016d0d7f7e Mon Sep 17 00:00:00 2001 From: Patrick Sean Klein Date: Sat, 3 Aug 2024 15:06:24 +0100 Subject: [PATCH] Add global watch failure notification setting. --- changedetectionio/forms.py | 1 + changedetectionio/templates/settings.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index f9ed8190..ba8a34e0 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -592,6 +592,7 @@ class globalSettingsApplicationForm(commonSettingsForm): render_kw={"style": "width: 5em;"}, validators=[validators.NumberRange(min=0, message="Should contain zero or more attempts")]) + notification_notify_on_failure = BooleanField('Send a notification on watch failure', default=False) class globalSettingsForm(Form): diff --git a/changedetectionio/templates/settings.html b/changedetectionio/templates/settings.html index f1131f94..fca79095 100644 --- a/changedetectionio/templates/settings.html +++ b/changedetectionio/templates/settings.html @@ -44,6 +44,9 @@ Set to 0 to disable +
+ {{ render_checkbox_field(form.application.form.notification_notify_on_failure) }} +
{% if not hide_remove_pass %} {% if current_user.is_authenticated %}