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

Remove unwanted icons

This commit is contained in:
Nick O'Leary 2019-07-12 13:37:01 +01:00
parent db5589f2aa
commit 04d7106956
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -957,10 +957,6 @@ RED.editor = (function() {
var categoryRow = $("<div/>", { var categoryRow = $("<div/>", {
class: "form-row" class: "form-row"
}).appendTo(dialogForm); }).appendTo(dialogForm);
$("<i/>", {
class: "fa fa-folder-o"
}).appendTo(categoryRow);
$("<span/>").text(" ").appendTo(categoryRow);
$("<label/>", { $("<label/>", {
for: "subflow-appearance-input-category", for: "subflow-appearance-input-category",
"data-i18n": "editor:subflow.category" "data-i18n": "editor:subflow.category"
@ -1011,10 +1007,9 @@ RED.editor = (function() {
}); });
$("#red-ui-editor-subflow-user-count") $("#red-ui-editor-subflow-user-count")
.text(RED._("subflow.subflowInstances", {count:userCount})).show(); .text(RED._("subflow.subflowInstances", {count:userCount})).show();
} }
$('<div class="form-row">'+ $('<div class="form-row">'+
'<i class="fa fa-tag"> '+
'<label for="node-input-show-label-btn" data-i18n="editor.label"></label>'+ '<label for="node-input-show-label-btn" data-i18n="editor.label"></label>'+
'<span style="margin-right: 2px;"/>'+ '<span style="margin-right: 2px;"/>'+
'<input type="checkbox" id="node-input-show-label"/>'+ '<input type="checkbox" id="node-input-show-label"/>'+
@ -1034,11 +1029,6 @@ RED.editor = (function() {
// If a node has icon property in defaults, the icon of the node cannot be modified. (e.g, ui_button node in dashboard) // If a node has icon property in defaults, the icon of the node cannot be modified. (e.g, ui_button node in dashboard)
if ((!node._def.defaults || !node._def.defaults.hasOwnProperty("icon"))) { if ((!node._def.defaults || !node._def.defaults.hasOwnProperty("icon"))) {
var iconRow = $('<div class="form-row"></div>').appendTo(dialogForm); var iconRow = $('<div class="form-row"></div>').appendTo(dialogForm);
$("<i/>", {
class: "fa fa-picture-o"
}).appendTo(iconRow);
$("<span/>").text(" ").appendTo(iconRow);
$('<label data-i18n="editor.settingIcon">').appendTo(iconRow); $('<label data-i18n="editor.settingIcon">').appendTo(iconRow);
var iconButton = $('<button type="button" class="red-ui-button" id="red-ui-editor-node-icon-button">').appendTo(iconRow); var iconButton = $('<button type="button" class="red-ui-button" id="red-ui-editor-node-icon-button">').appendTo(iconRow);
@ -1068,7 +1058,7 @@ RED.editor = (function() {
$('<div id="red-ui-editor-node-icon">').text(node.icon).appendTo(iconButton); $('<div id="red-ui-editor-node-icon">').text(node.icon).appendTo(iconButton);
} }
$('<div class="form-row"><i class="fa fa-external-link"/> <span data-i18n="editor.portLabels"></span></div>').appendTo(dialogForm); $('<div class="form-row"><span data-i18n="editor.portLabels"></span></div>').appendTo(dialogForm);
var inputCount = node.inputs || node._def.inputs || 0; var inputCount = node.inputs || node._def.inputs || 0;
var outputCount = node.outputs || node._def.outputs || 0; var outputCount = node.outputs || node._def.outputs || 0;
@ -1166,7 +1156,7 @@ RED.editor = (function() {
var defaultIcon; var defaultIcon;
var nodeInfoEditor; var nodeInfoEditor;
var finishedBuilding = false; var finishedBuilding = false;
editStack.push(node); editStack.push(node);
RED.view.state(RED.state.EDITING); RED.view.state(RED.state.EDITING);
var type = node.type; var type = node.type;