From db2af7effbb53951f6482ed7c9bb1bb2d8f7d8c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 24 Feb 2022 17:20:24 +0100 Subject: [PATCH] :bug: Fix placeholder display in creds config modal (#2857) * :zap: Fix placeholder in creds config modal * :pencil2: Adjust docstring to `credText` placeholder version --- packages/editor-ui/src/plugins/i18n/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/editor-ui/src/plugins/i18n/index.ts b/packages/editor-ui/src/plugins/i18n/index.ts index d99632504..bb1d50d35 100644 --- a/packages/editor-ui/src/plugins/i18n/index.ts +++ b/packages/editor-ui/src/plugins/i18n/index.ts @@ -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, }); }, };