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];
|
const { type, body, callback } = moduleQueue[0];
|
||||||
if (type === "install") {
|
if (type === "install") {
|
||||||
|
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.install") + ` : ${body.module} ${body.version}`);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "nodes",
|
url: "nodes",
|
||||||
type: "POST",
|
type: "POST",
|
||||||
@ -140,6 +141,7 @@ RED.palette.editor = (function() {
|
|||||||
processQueue();
|
processQueue();
|
||||||
});
|
});
|
||||||
} else if (type === "remove") {
|
} else if (type === "remove") {
|
||||||
|
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.remove") + ` : ${body.id}`);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "nodes/" + body.id,
|
url: "nodes/" + body.id,
|
||||||
type: "DELETE"
|
type: "DELETE"
|
||||||
@ -1270,7 +1272,6 @@ RED.palette.editor = (function() {
|
|||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
RED.actions.invoke("core:show-event-log");
|
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) {
|
installNodeModule(entry.name,version,url,function(xhr) {
|
||||||
spinner.remove();
|
spinner.remove();
|
||||||
if (xhr) {
|
if (xhr) {
|
||||||
@ -1329,7 +1330,6 @@ RED.palette.editor = (function() {
|
|||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
RED.actions.invoke("core:show-event-log");
|
RED.actions.invoke("core:show-event-log");
|
||||||
});
|
});
|
||||||
RED.eventLog.startEvent(RED._("palette.editor.confirm.button.remove")+" : "+entry.name);
|
|
||||||
removeNodeModule(entry.name, function(xhr) {
|
removeNodeModule(entry.name, function(xhr) {
|
||||||
spinner.remove();
|
spinner.remove();
|
||||||
if (xhr) {
|
if (xhr) {
|
||||||
@ -1443,7 +1443,6 @@ RED.palette.editor = (function() {
|
|||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
RED.actions.invoke("core:show-event-log");
|
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) {
|
installNodeModule(entry.id,entry.version,entry.pkg_url,function(xhr, textStatus,err) {
|
||||||
spinner.remove();
|
spinner.remove();
|
||||||
if (err && xhr.status === 504) {
|
if (err && xhr.status === 504) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user