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
1 changed files with 1 additions and 1 deletions

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