From e56dd4e4cb01f396a86a1c3f7c2312045a974fd5 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 18 Jan 2026 08:31:57 +1100 Subject: [PATCH] FE: ad-hoc Settings events execution work #1419 Signed-off-by: jokob-sk --- front/js/common.js | 2 +- front/js/ui_components.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/js/common.js b/front/js/common.js index 3d087a9e..8ff405fd 100755 --- a/front/js/common.js +++ b/front/js/common.js @@ -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 ); diff --git a/front/js/ui_components.js b/front/js/ui_components.js index e2ae04b6..649531c6 100755 --- a/front/js/ui_components.js +++ b/front/js/ui_components.js @@ -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");