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

Disable user defined icon for subflow

This commit is contained in:
Kazuki-Nakanishi 2018-02-20 15:29:52 +09:00
parent 326c6c496e
commit c53562cc9c

View File

@ -742,7 +742,7 @@ RED.editor = (function() {
buildLabelRow().appendTo(outputsDiv);
}
if (!node._def.defaults.hasOwnProperty("icon")) {
if (!node._def.defaults.hasOwnProperty("icon") && node.type !== "subflow") {
$('<div class="form-row"><div id="node-settings-icon"></div></div>').appendTo(dialogForm);
var iconDiv = $("#node-settings-icon");
$('<label data-i18n="editor.settingIcon">').appendTo(iconDiv);