feat(ui): hide add prompt buttons when user has a prompt

This commit is contained in:
psychedelicious 2024-04-24 09:02:57 +10:00
parent c73aabdfbf
commit 293e11cfa6

View File

@ -75,7 +75,7 @@ export const RPLayerListItem = memo(({ layerId }: Props) => {
<RPLayerSettingsPopover layerId={layerId} />
<RPLayerMenu layerId={layerId} />
</Flex>
<AddPromptButtons layerId={layerId} />
{!hasPositivePrompt && !hasNegativePrompt && !hasIPAdapters && <AddPromptButtons layerId={layerId} />}
{hasPositivePrompt && <RPLayerPositivePrompt layerId={layerId} />}
{hasNegativePrompt && <RPLayerNegativePrompt layerId={layerId} />}
{hasIPAdapters && <RPLayerIPAdapterList layerId={layerId} />}