mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
getNodeIcon should handle subflow types properly
This commit is contained in:
parent
7ec8f0d26b
commit
67dc848b2d
@ -683,6 +683,8 @@ RED.utils = (function() {
|
|||||||
return "icons/node-red/subflow.png"
|
return "icons/node-red/subflow.png"
|
||||||
} else if (node && node.type === 'unknown') {
|
} else if (node && node.type === 'unknown') {
|
||||||
return "icons/node-red/alert.png"
|
return "icons/node-red/alert.png"
|
||||||
|
} else if (node && node.type === 'subflow') {
|
||||||
|
return "icons/node-red/subflow.png"
|
||||||
}
|
}
|
||||||
var icon_url;
|
var icon_url;
|
||||||
if (typeof def.icon === "function") {
|
if (typeof def.icon === "function") {
|
||||||
|
Loading…
Reference in New Issue
Block a user