"Send Test Notification" button from watch form edit should respect global settings and tag/group settings ( #2289, #2263 )

This commit is contained in:
dgtlmoon
2024-04-03 15:18:21 +02:00
committed by GitHub
parent 1ae59551be
commit 8e5bf91965
3 changed files with 26 additions and 13 deletions

View File

@@ -28,15 +28,11 @@ $(document).ready(function() {
notification_format: $('#notification_format').val(),
notification_title: $('#notification_title').val(),
notification_urls: $('.notification-urls').val(),
tags: $('#tags').val(),
window_url: window.location.href,
}
if (!data['notification_urls'].length) {
alert("Notification URL list is empty, cannot send test.")
return;
}
$.ajax({
type: "POST",
url: notification_base_url,