mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(If Node): Update copy for type conversion parameter (#10769)
This commit is contained in:
parent
6fa1919ca8
commit
ee5fbc543c
|
@ -185,10 +185,19 @@ const addTargetBlank = (html: string) =>
|
|||
}
|
||||
|
||||
:root .tooltipPopper {
|
||||
line-height: var(--font-line-height-compact);
|
||||
max-width: 400px;
|
||||
|
||||
li {
|
||||
margin-left: var(--spacing-s);
|
||||
}
|
||||
|
||||
code {
|
||||
color: var(--color-text-dark);
|
||||
font-size: var(--font-size-3xs);
|
||||
background: var(--color-background-medium);
|
||||
padding: var(--spacing-5xs);
|
||||
border-radius: var(--border-radius-base);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -4,4 +4,4 @@ export const NODE_RAN_MULTIPLE_TIMES_WARNING =
|
|||
export const LOCALHOST = '127.0.0.1';
|
||||
|
||||
export const ENABLE_LESS_STRICT_TYPE_VALIDATION =
|
||||
"Try changing the type of comparison. Alternatively you can enable 'Convert Value Types'.";
|
||||
"Try changing the type of comparison. Alternatively you can enable 'Convert types where required'.";
|
||||
|
|
|
@ -34,8 +34,9 @@ export const returnAllOrLimit: INodeProperties[] = [
|
|||
];
|
||||
|
||||
export const looseTypeValidationProperty: INodeProperties = {
|
||||
displayName: 'Convert Value Types',
|
||||
description: 'Whether to try casting value types based on the selected operator',
|
||||
displayName: 'Convert types where required',
|
||||
description:
|
||||
'If the type of an expression doesn\'t match the type of the comparison, n8n will try to cast the expression to the required type. E.g. for booleans <code>"false"</code> or <code>0</code> will be cast to <code>false</code>',
|
||||
name: 'looseTypeValidation',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
|
|
|
@ -109,7 +109,7 @@ function parseFilterConditionValues(
|
|||
|
||||
const getTypeDescription = (isStrict: boolean) => {
|
||||
if (isStrict)
|
||||
return "Try changing the type of comparison. Alternatively you can enable 'Convert Value Types'.";
|
||||
return "Try changing the type of comparison. Alternatively you can enable 'Convert types where required'.";
|
||||
return 'Try changing the type of the comparison.';
|
||||
};
|
||||
|
||||
|
@ -135,7 +135,7 @@ function parseFilterConditionValues(
|
|||
return `
|
||||
<p>Try either:</p>
|
||||
<ol>
|
||||
<li>Enabling 'Convert Value Types'</li>
|
||||
<li>Enabling 'Convert types where required'</li>
|
||||
<li>Converting the ${valuePosition} field to ${expectedType}${suggestFunction}</li>
|
||||
</ol>
|
||||
`;
|
||||
|
|
Loading…
Reference in a new issue