From 4740cd4f646ef0556bd6a7027a6d175c56c82205 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 9 May 2024 12:03:31 +1000 Subject: [PATCH] feat(ui): add "global" to global prompt placeholders --- invokeai/frontend/web/public/locales/en.json | 2 ++ .../features/parameters/components/Core/ParamNegativePrompt.tsx | 2 +- .../features/parameters/components/Core/ParamPositivePrompt.tsx | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/public/locales/en.json b/invokeai/frontend/web/public/locales/en.json index cfed635570..b36fe0e26c 100644 --- a/invokeai/frontend/web/public/locales/en.json +++ b/invokeai/frontend/web/public/locales/en.json @@ -938,10 +938,12 @@ }, "maskBlur": "Mask Blur", "negativePromptPlaceholder": "Negative Prompt", + "globalNegativePromptPlaceholder": "Global Negative Prompt", "noiseThreshold": "Noise Threshold", "patchmatchDownScaleSize": "Downscale", "perlinNoise": "Perlin Noise", "positivePromptPlaceholder": "Positive Prompt", + "globalPositivePromptPlaceholder": "Global Positive Prompt", "iterations": "Iterations", "iterationsWithCount_one": "{{count}} Iteration", "iterationsWithCount_other": "{{count}} Iterations", diff --git a/invokeai/frontend/web/src/features/parameters/components/Core/ParamNegativePrompt.tsx b/invokeai/frontend/web/src/features/parameters/components/Core/ParamNegativePrompt.tsx index 25b5b36c9a..3f128f5742 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Core/ParamNegativePrompt.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Core/ParamNegativePrompt.tsx @@ -33,7 +33,7 @@ export const ParamNegativePrompt = memo(() => { name="negativePrompt" ref={textareaRef} value={prompt} - placeholder={t('parameters.negativePromptPlaceholder')} + placeholder={t('parameters.globalNegativePromptPlaceholder')} onChange={onChange} onKeyDown={onKeyDown} fontSize="sm" diff --git a/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx b/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx index 0b2890875e..ebe64ea7dd 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx @@ -49,7 +49,7 @@ export const ParamPositivePrompt = memo(() => { name="prompt" ref={textareaRef} value={prompt} - placeholder={t('parameters.positivePromptPlaceholder')} + placeholder={t('parameters.globalPositivePromptPlaceholder')} onChange={onChange} minH={28} onKeyDown={onKeyDown}