diff --git a/data/interfaces/default/notification_config.html b/data/interfaces/default/notification_config.html index 10480b34..260c992d 100644 --- a/data/interfaces/default/notification_config.html +++ b/data/interfaces/default/notification_config.html @@ -75,6 +75,22 @@ from plexpy import helpers

Test ${agent['name']}

Test if ${agent['name']} notifications are working. See logs for troubleshooting.

+ % if agent['name'] == 'Scripts': +
+ + +

Choose the script to test.

+
+
+ + +

Set custom arguments passed to the script.

+
+ % else:
@@ -85,31 +101,6 @@ from plexpy import helpers

Set a custom body.

- %if agent['name'] == 'Scripts': -
- - -

Choose a notification action.

- -
-
- - -

Set custom script arguments: -zomg --x.

-
% endif
@@ -199,11 +190,13 @@ from plexpy import helpers doAjaxCall('set_notification_config', $(this), 'tabs', true); $.ajax({ url: 'test_notifier', - data: { config_id: '${agent["id"]}', - subject: $('#test_subject').val(), - body: $('#test_body').val(), - notify_action: $('#test_script_action').val(), - script_args: $('#test_script_args').val() }, + data: { + config_id: '${agent["id"]}', + subject: $('#test_subject').val(), + body: $('#test_body').val(), + script: $('#test_script').val(), + script_args: $('#test_script_args').val() + }, cache: false, async: true, complete: function (xhr, status) { diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index adcdd590..37c59b5b 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -757,9 +757,9 @@ available_notification_agents = sorted(notifiers.available_notification_agents()