FE: ad-hoc Settings events execution work #1419

Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
jokob-sk
2026-01-18 08:31:57 +11:00
parent c45af09fd7
commit e56dd4e4cb
2 changed files with 2 additions and 2 deletions

View File

@@ -1598,7 +1598,7 @@ function restartBackend() {
"Authorization": "Bearer " + apiToken,
"Content-Type": "application/json"
},
data: JSON.stringify({ action: `${getGuid()}|cron_restart_backend` }),
data: JSON.stringify({ action: `cron_restart_backend` }),
success: function(data, textStatus) {
// showModalOk ('Result', data );

View File

@@ -308,7 +308,7 @@ function execute_settingEvent(element) {
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
// value has to be in format event|param. e.g. run|ARPSCAN
action = `${getGuid()}|${feEvent}|${fePlugin}`
action = `${feEvent}|${fePlugin}`
// Get data from the server
const apiToken = getSetting("API_TOKEN");