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

Merge pull request #1642 from node-red-hitachi/subflow-icon

Disable user defined icon for subflow
This commit is contained in:
Nick O'Leary 2018-02-21 08:24:41 -08:00 committed by GitHub
commit 0123eacbdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);