mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	ensure core node labels are italic when named (#1498)
This commit is contained in:
		
				
					committed by
					
						
						Nick O'Leary
					
				
			
			
				
	
			
			
			
						parent
						
							5e128f89f6
						
					
				
				
					commit
					256e5360d4
				
			@@ -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({
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -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};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user