mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): hide nonfunctional delete button on root form element
This commit is contained in:
@@ -83,15 +83,17 @@ export const FormElementEditModeWrapper = memo(
|
||||
{getHeaderLabel(element)} ({element.id})
|
||||
</Text>
|
||||
<Spacer />
|
||||
<IconButton
|
||||
aria-label="delete"
|
||||
onClick={removeElement}
|
||||
icon={<PiXBold />}
|
||||
variant="link"
|
||||
size="sm"
|
||||
alignSelf="stretch"
|
||||
colorScheme="error"
|
||||
/>
|
||||
{element.parentId && (
|
||||
<IconButton
|
||||
aria-label="delete"
|
||||
onClick={removeElement}
|
||||
icon={<PiXBold />}
|
||||
variant="link"
|
||||
size="sm"
|
||||
alignSelf="stretch"
|
||||
colorScheme="error"
|
||||
/>
|
||||
)}
|
||||
</Flex>
|
||||
<Flex w="full" p={4} alignItems="center" gap={4}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user