mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 11:02:12 -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.
|
||||
* - 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 for a `string` param.
|
||||
*/
|
||||
placeholder(
|
||||
{ name: parameterName, displayName }: { name: string; displayName: string; },
|
||||
{ name: parameterName, placeholder }: { name: string; placeholder: string; },
|
||||
) {
|
||||
return context.dynamicRender({
|
||||
key: `${credentialPrefix}.${parameterName}.placeholder`,
|
||||
fallback: displayName,
|
||||
fallback: placeholder,
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue