From 293e11cfa6c6225d61a2ad15307394c140cef677 Mon Sep 17 00:00:00 2001
From: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
Date: Wed, 24 Apr 2024 09:02:57 +1000
Subject: [PATCH] feat(ui): hide add prompt buttons when user has a prompt
---
.../src/features/regionalPrompts/components/RPLayerListItem.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerListItem.tsx b/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerListItem.tsx
index 67f2897fad..ef98a659ac 100644
--- a/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerListItem.tsx
+++ b/invokeai/frontend/web/src/features/regionalPrompts/components/RPLayerListItem.tsx
@@ -75,7 +75,7 @@ export const RPLayerListItem = memo(({ layerId }: Props) => {
-
+ {!hasPositivePrompt && !hasNegativePrompt && !hasIPAdapters && }
{hasPositivePrompt && }
{hasNegativePrompt && }
{hasIPAdapters && }