🐛 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:
Iván Ovejero 2022-02-24 17:20:24 +01:00 committed by GitHub
parent d85934a855
commit db2af7effb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
});
},
};