mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
ensure core node labels are italic when named (#1498)
This commit is contained in:
parent
5e128f89f6
commit
256e5360d4
@ -70,6 +70,9 @@
|
|||||||
label: function() {
|
label: function() {
|
||||||
return this.name;
|
return this.name;
|
||||||
},
|
},
|
||||||
|
labelStyle: function() {
|
||||||
|
return this.name?"node_label_italic":"";
|
||||||
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
$( "#node-input-outputs" ).spinner({
|
$( "#node-input-outputs" ).spinner({
|
||||||
|
@ -97,6 +97,9 @@
|
|||||||
label: function() {
|
label: function() {
|
||||||
return this.name;
|
return this.name;
|
||||||
},
|
},
|
||||||
|
labelStyle: function() {
|
||||||
|
return this.name?"node_label_italic":"";
|
||||||
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
if (!this.fieldType) {
|
if (!this.fieldType) {
|
||||||
|
@ -114,6 +114,9 @@
|
|||||||
label: function() {
|
label: function() {
|
||||||
return this.name||"switch";
|
return this.name||"switch";
|
||||||
},
|
},
|
||||||
|
labelStyle: function() {
|
||||||
|
return this.name?"node_label_italic":"";
|
||||||
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
var node = this;
|
var node = this;
|
||||||
var previousValueType = {value:"prev",label:this._("inject.previous"),hasValue:false};
|
var previousValueType = {value:"prev",label:this._("inject.previous"),hasValue:false};
|
||||||
|
Loading…
Reference in New Issue
Block a user