Skip to content

Commit e58bfc8

Browse files
committed
Improve the text on expression builder for single variable mode
1 parent c270301 commit e58bfc8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

assets/js/workflowEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40055,7 +40055,7 @@ var ExpressionBuilder = function ExpressionBuilder(_ref) {
4005540055
minWidth: '600px',
4005640056
maxWidth: '600px'
4005740057
}
40058-
}, singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Single variable mode. Double click on a variable below to add it to your expression.", "post-expirator")), !singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Type your expression here or use the variables below.", "post-expirator")), /*#__PURE__*/React.createElement(react_ace__WEBPACK_IMPORTED_MODULE_5__["default"], {
40058+
}, singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Single variable mode. Select a variable from the list below.", "post-expirator")), !singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Type your expression here or use the variables below.", "post-expirator")), /*#__PURE__*/React.createElement(react_ace__WEBPACK_IMPORTED_MODULE_5__["default"], {
4005940059
ref: editorFullRef,
4006040060
mode: "handlebars",
4006140061
theme: "textmate",
@@ -40090,7 +40090,7 @@ var ExpressionBuilder = function ExpressionBuilder(_ref) {
4009040090
}, /*#__PURE__*/React.createElement(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__.__experimentalHeading, {
4009140091
level: 2,
4009240092
className: "components-truncate components-text components-heading block-editor-inspector-popover-header__heading"
40093-
}, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Variables", "post-expirator")), !singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Double-click on any variable to add it to your expression.", "post-expirator")), /*#__PURE__*/React.createElement(_columns_container__WEBPACK_IMPORTED_MODULE_4__["default"], {
40093+
}, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Variables", "post-expirator")), singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Double-click on a variable to select it.", "post-expirator")), !singleVariableOnly && /*#__PURE__*/React.createElement("p", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Double-click on any variable to add it to your expression.", "post-expirator")), /*#__PURE__*/React.createElement(_columns_container__WEBPACK_IMPORTED_MODULE_4__["default"], {
4009440094
items: variables,
4009540095
setCurrentDescription: setCurrentDescription,
4009640096
setCurrentVariableId: setCurrentVariableId,

assets/jsx/workflow-editor/components/data-fields/expression-builder/index.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export const ExpressionBuilder = ({
152152
>
153153
<div style={{ minWidth: '600px', maxWidth: '600px' }}>
154154
{singleVariableOnly && (
155-
<p>{__("Single variable mode. Double click on a variable below to add it to your expression.", "post-expirator")}</p>
155+
<p>{__("Single variable mode. Select a variable from the list below.", "post-expirator")}</p>
156156
)}
157157

158158
{!singleVariableOnly && (
@@ -185,6 +185,10 @@ export const ExpressionBuilder = ({
185185
<div className="expression-builder-modal-variables" style={{ maxWidth: '600px', overflowX: 'auto' }}>
186186
<Heading level={2} className="components-truncate components-text components-heading block-editor-inspector-popover-header__heading">{__("Variables", "post-expirator")}</Heading>
187187

188+
{singleVariableOnly && (
189+
<p>{__("Double-click on a variable to select it.", "post-expirator")}</p>
190+
)}
191+
188192
{! singleVariableOnly && (
189193
<p>{__("Double-click on any variable to add it to your expression.", "post-expirator")}</p>
190194
)}

0 commit comments

Comments
 (0)