mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): move cnet add button to top of list
This commit is contained in:
parent
401727b0c9
commit
13d182ead2
@ -67,19 +67,20 @@ const ParamControlNetCollapse = () => {
|
|||||||
<IAICollapse label="ControlNet" activeLabel={activeLabel}>
|
<IAICollapse label="ControlNet" activeLabel={activeLabel}>
|
||||||
<Flex sx={{ flexDir: 'column', gap: 3 }}>
|
<Flex sx={{ flexDir: 'column', gap: 3 }}>
|
||||||
<ParamControlNetFeatureToggle />
|
<ParamControlNetFeatureToggle />
|
||||||
|
<IAIButton
|
||||||
|
isDisabled={!firstModel}
|
||||||
|
flexGrow={1}
|
||||||
|
size="sm"
|
||||||
|
onClick={handleClickedAddControlNet}
|
||||||
|
>
|
||||||
|
Add ControlNet
|
||||||
|
</IAIButton>
|
||||||
{controlNetsArray.map((c, i) => (
|
{controlNetsArray.map((c, i) => (
|
||||||
<Fragment key={c.controlNetId}>
|
<Fragment key={c.controlNetId}>
|
||||||
{i > 0 && <Divider />}
|
{i > 0 && <Divider />}
|
||||||
<ControlNet controlNetId={c.controlNetId} />
|
<ControlNet controlNetId={c.controlNetId} />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
<IAIButton
|
|
||||||
isDisabled={!firstModel}
|
|
||||||
flexGrow={1}
|
|
||||||
onClick={handleClickedAddControlNet}
|
|
||||||
>
|
|
||||||
Add ControlNet
|
|
||||||
</IAIButton>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</IAICollapse>
|
</IAICollapse>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user