From b0f1fad4e2e6de5119b249bc855aa0a5ef9207a0 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 29 Sep 2021 19:43:30 +0100 Subject: [PATCH] Change label for 'set' change node action to make it clearer --- .../@node-red/nodes/core/function/15-change.html | 15 ++++++++------- .../@node-red/nodes/locales/en-US/messages.json | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/function/15-change.html b/packages/node_modules/@node-red/nodes/core/function/15-change.html index 13f6503ae..32f3c7fbb 100644 --- a/packages/node_modules/@node-red/nodes/core/function/15-change.html +++ b/packages/node_modules/@node-red/nodes/core/function/15-change.html @@ -109,6 +109,7 @@ var del = this._("change.action.delete"); var move = this._("change.action.move"); var to = this._("change.action.to"); + var toValueLabel = this._("change.action.toValue",to); var search = this._("change.action.search"); var replace = this._("change.action.replace"); var regex = this._("change.label.regex"); @@ -139,10 +140,10 @@ whiteSpace: 'nowrap' }); let fragment = document.createDocumentFragment(); - var row1 = $('
',{style:"display:flex;"}).appendTo(fragment); - var row2 = $('
',{style:"display:flex;margin-top:8px;"}).appendTo(fragment); - var row3 = $('
',{style:"margin-top:8px;"}).appendTo(fragment); - var row4 = $('
',{style:"display:flex;margin-top:8px;"}).appendTo(fragment); + var row1 = $('
',{style:"display:flex; align-items: baseline"}).appendTo(fragment); + var row2 = $('
',{style:"display:flex;margin-top:8px; align-items: baseline"}).appendTo(fragment); + var row3 = $('
',{style:"margin-top:8px;align-items: baseline"}).appendTo(fragment); + var row4 = $('
',{style:"display:flex;margin-top:8px;align-items: baseline"}).appendTo(fragment); var selectField = $('