mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-06 02:01:37 -07:00
FE: ad-hoc Settings events execution work #1419
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -1598,7 +1598,7 @@ function restartBackend() {
|
|||||||
"Authorization": "Bearer " + apiToken,
|
"Authorization": "Bearer " + apiToken,
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),
|
data: JSON.stringify({ action: `cron_restart_backend` }),
|
||||||
success: function(data, textStatus) {
|
success: function(data, textStatus) {
|
||||||
// showModalOk ('Result', data );
|
// showModalOk ('Result', data );
|
||||||
|
|
||||||
|
|||||||
@@ -308,7 +308,7 @@ function execute_settingEvent(element) {
|
|||||||
if (["test", "run"].includes(feEvent)) {
|
if (["test", "run"].includes(feEvent)) {
|
||||||
// Calls a backend function to add a front-end event (specified by the attributes 'data-myevent' and 'data-myparam-plugin' on the passed element) to an execution queue
|
// Calls a backend function to add a front-end event (specified by the attributes 'data-myevent' and 'data-myparam-plugin' on the passed element) to an execution queue
|
||||||
// value has to be in format event|param. e.g. run|ARPSCAN
|
// value has to be in format event|param. e.g. run|ARPSCAN
|
||||||
action = `${getGuid()}|${feEvent}|${fePlugin}`
|
action = `${feEvent}|${fePlugin}`
|
||||||
|
|
||||||
// Get data from the server
|
// Get data from the server
|
||||||
const apiToken = getSetting("API_TOKEN");
|
const apiToken = getSetting("API_TOKEN");
|
||||||
|
|||||||
Reference in New Issue
Block a user