From 256e5360d47592b4f79ef3be38be9516fd76d689 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 6 Dec 2017 22:47:13 +0000 Subject: [PATCH] ensure core node labels are italic when named (#1498) --- nodes/core/core/80-function.html | 3 +++ nodes/core/core/80-template.html | 3 +++ nodes/core/logic/10-switch.html | 3 +++ 3 files changed, 9 insertions(+) diff --git a/nodes/core/core/80-function.html b/nodes/core/core/80-function.html index b64df3dce..e05a55b9c 100644 --- a/nodes/core/core/80-function.html +++ b/nodes/core/core/80-function.html @@ -70,6 +70,9 @@ label: function() { return this.name; }, + labelStyle: function() { + return this.name?"node_label_italic":""; + }, oneditprepare: function() { var that = this; $( "#node-input-outputs" ).spinner({ diff --git a/nodes/core/core/80-template.html b/nodes/core/core/80-template.html index 94fcd453f..f586bb62a 100644 --- a/nodes/core/core/80-template.html +++ b/nodes/core/core/80-template.html @@ -97,6 +97,9 @@ label: function() { return this.name; }, + labelStyle: function() { + return this.name?"node_label_italic":""; + }, oneditprepare: function() { var that = this; if (!this.fieldType) { diff --git a/nodes/core/logic/10-switch.html b/nodes/core/logic/10-switch.html index cbb0b491e..553bdbbf6 100644 --- a/nodes/core/logic/10-switch.html +++ b/nodes/core/logic/10-switch.html @@ -114,6 +114,9 @@ label: function() { return this.name||"switch"; }, + labelStyle: function() { + return this.name?"node_label_italic":""; + }, oneditprepare: function() { var node = this; var previousValueType = {value:"prev",label:this._("inject.previous"),hasValue:false};