mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Added test button to notification edit
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
"use strict";
|
||||
define(['app'], function () {
|
||||
|
||||
NzbDrone.Commands.Execute = function (name) {
|
||||
NzbDrone.Commands.Execute = function (name, properties) {
|
||||
var data = { command: name };
|
||||
|
||||
if (properties !== undefined) {
|
||||
$.extend(data, properties);
|
||||
}
|
||||
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url : NzbDrone.Constants.ApiRoot + '/command',
|
||||
data: JSON.stringify({command: name})
|
||||
data: JSON.stringify(data)
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user