mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-20 22:30:11 -04:00
WF: fix suggestions
This commit is contained in:
@@ -326,7 +326,7 @@ function generateWorkflowUI(wf, wfIndex) {
|
||||
.append(` ${getString("WF_Action_target_conditions")}:`);
|
||||
|
||||
let $tokenHint = $("<div>", { class: "text-muted small col-sm-12 col-xs-12" })
|
||||
.text(getString("WF_Action_token_hint"));
|
||||
.html(getString("WF_Action_token_hint"));
|
||||
|
||||
$targetConditionsWrap.append($targetConditionsTitle);
|
||||
$targetConditionsWrap.append($tokenHint);
|
||||
@@ -1230,12 +1230,18 @@ function saveWorkflows()
|
||||
appConfBase64 = btoa(JSON.stringify(getWorkflowsJson()))
|
||||
|
||||
// import
|
||||
$.post('php/server/query_replace_config.php', { base64data: appConfBase64, fileName: "workflows.json" }, function(msg) {
|
||||
console.log(msg);
|
||||
// showMessage(msg);
|
||||
hideSpinner();
|
||||
write_notification(`[WF]: ${msg}`, 'interrupt');
|
||||
});
|
||||
$.post('php/server/query_replace_config.php', { base64data: appConfBase64, fileName: "workflows.json" })
|
||||
.done(function(msg) {
|
||||
console.log(msg);
|
||||
write_notification(`[WF]: ${msg}`, 'interrupt');
|
||||
})
|
||||
.fail(function(jqXHR, textStatus, errorThrown) {
|
||||
console.warn("Failed to save workflows.json:", textStatus, errorThrown);
|
||||
write_notification(`[WF]: Save failed (${textStatus})`, 'interrupt');
|
||||
})
|
||||
.always(function() {
|
||||
hideSpinner();
|
||||
});
|
||||
}
|
||||
|
||||
// ---------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user