mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
🐛 Fix placeholder display in creds config modal (#2857)
* ⚡ Fix placeholder in creds config modal * ✏️ Adjust docstring to `credText` placeholder version
This commit is contained in:
parent
d85934a855
commit
db2af7effb
|
@ -161,16 +161,14 @@ export class I18nClass {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Placeholder for a `string` or `collection` or `fixedCollection` param.
|
* Placeholder for a `string` param.
|
||||||
* - For a `string` parameter, the placeholder is unselectable greyed-out sample text.
|
|
||||||
* - For a `collection` or `fixedCollection` parameter, the placeholder is the button text.
|
|
||||||
*/
|
*/
|
||||||
placeholder(
|
placeholder(
|
||||||
{ name: parameterName, displayName }: { name: string; displayName: string; },
|
{ name: parameterName, placeholder }: { name: string; placeholder: string; },
|
||||||
) {
|
) {
|
||||||
return context.dynamicRender({
|
return context.dynamicRender({
|
||||||
key: `${credentialPrefix}.${parameterName}.placeholder`,
|
key: `${credentialPrefix}.${parameterName}.placeholder`,
|
||||||
fallback: displayName,
|
fallback: placeholder,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue