1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix node color bug (#1877)

* Fix node color bug

* Add color property into sample node

* Revert view.js

* Add color handling into getNodeColor()
This commit is contained in:
Kazuhito Yokoi 2018-09-09 06:41:38 +09:00 committed by Nick O'Leary
parent ca77842b5b
commit 048f9c0294
2 changed files with 6 additions and 1 deletions

View File

@ -826,7 +826,11 @@ RED.utils = (function() {
}
result = nodeColorCache[type];
}
return result;
if (result) {
return result;
} else {
return "#ddd";
}
}
function addSpinnerOverlay(container,contain) {

View File

@ -67,6 +67,7 @@
},
inputs:1, // set the number of inputs - only 0 or 1
outputs:1, // set the number of outputs - 0 to n
color: "#ddd", // set icon color
// set the icon (held in icons dir below where you save the node)
icon: "myicon.png", // saved in icons/myicon.png
label: function() { // sets the default label contents