mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22: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 {
|
:root .tooltipPopper {
|
||||||
|
line-height: var(--font-line-height-compact);
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin-left: var(--spacing-s);
|
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>
|
</style>
|
||||||
|
|
|
@ -4,4 +4,4 @@ export const NODE_RAN_MULTIPLE_TIMES_WARNING =
|
||||||
export const LOCALHOST = '127.0.0.1';
|
export const LOCALHOST = '127.0.0.1';
|
||||||
|
|
||||||
export const ENABLE_LESS_STRICT_TYPE_VALIDATION =
|
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 = {
|
export const looseTypeValidationProperty: INodeProperties = {
|
||||||
displayName: 'Convert Value Types',
|
displayName: 'Convert types where required',
|
||||||
description: 'Whether to try casting value types based on the selected operator',
|
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',
|
name: 'looseTypeValidation',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: true,
|
default: true,
|
||||||
|
|
|
@ -109,7 +109,7 @@ function parseFilterConditionValues(
|
||||||
|
|
||||||
const getTypeDescription = (isStrict: boolean) => {
|
const getTypeDescription = (isStrict: boolean) => {
|
||||||
if (isStrict)
|
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.';
|
return 'Try changing the type of the comparison.';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ function parseFilterConditionValues(
|
||||||
return `
|
return `
|
||||||
<p>Try either:</p>
|
<p>Try either:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Enabling 'Convert Value Types'</li>
|
<li>Enabling 'Convert types where required'</li>
|
||||||
<li>Converting the ${valuePosition} field to ${expectedType}${suggestFunction}</li>
|
<li>Converting the ${valuePosition} field to ${expectedType}${suggestFunction}</li>
|
||||||
</ol>
|
</ol>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in a new issue