mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
startEvent
must be called in the processQueue
This commit is contained in:
parent
2b77590402
commit
2f2162d531
@ -124,6 +124,7 @@ RED.palette.editor = (function() {
|
||||
|
||||
const { type, body, callback } = moduleQueue[0];
|
||||
if (type === "install") {
|
||||
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.install") + ` : ${body.module} ${body.version}`);
|
||||
$.ajax({
|
||||
url: "nodes",
|
||||
type: "POST",
|
||||
@ -140,6 +141,7 @@ RED.palette.editor = (function() {
|
||||
processQueue();
|
||||
});
|
||||
} else if (type === "remove") {
|
||||
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.remove") + ` : ${body.id}`);
|
||||
$.ajax({
|
||||
url: "nodes/" + body.id,
|
||||
type: "DELETE"
|
||||
@ -1270,7 +1272,6 @@ RED.palette.editor = (function() {
|
||||
evt.preventDefault();
|
||||
RED.actions.invoke("core:show-event-log");
|
||||
});
|
||||
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.install")+" : "+entry.name+" "+version);
|
||||
installNodeModule(entry.name,version,url,function(xhr) {
|
||||
spinner.remove();
|
||||
if (xhr) {
|
||||
@ -1329,7 +1330,6 @@ RED.palette.editor = (function() {
|
||||
evt.preventDefault();
|
||||
RED.actions.invoke("core:show-event-log");
|
||||
});
|
||||
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.remove")+" : "+entry.name);
|
||||
removeNodeModule(entry.name, function(xhr) {
|
||||
spinner.remove();
|
||||
if (xhr) {
|
||||
@ -1443,7 +1443,6 @@ RED.palette.editor = (function() {
|
||||
evt.preventDefault();
|
||||
RED.actions.invoke("core:show-event-log");
|
||||
});
|
||||
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.install")+" : "+entry.id+" "+entry.version);
|
||||
installNodeModule(entry.id,entry.version,entry.pkg_url,function(xhr, textStatus,err) {
|
||||
spinner.remove();
|
||||
if (err && xhr.status === 504) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user