mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
added info popover back to model, updated description hover to combobox only
This commit is contained in:
parent
489d485907
commit
bd7c8cd517
@ -1,4 +1,4 @@
|
|||||||
import { Combobox, FormControl, FormLabel, Tooltip } from '@invoke-ai/ui-library';
|
import { Box, Combobox, FormControl, FormLabel, Tooltip } from '@invoke-ai/ui-library';
|
||||||
import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
|
import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
|
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
|
||||||
@ -46,20 +46,22 @@ const ParamMainModelSelect = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip label={tooltipLabel}>
|
<FormControl isDisabled={!modelConfigs.length} isInvalid={!value || !modelConfigs.length}>
|
||||||
<FormControl isDisabled={!modelConfigs.length} isInvalid={!value || !modelConfigs.length}>
|
<InformationalPopover feature="paramModel">
|
||||||
<InformationalPopover feature="paramModel">
|
<FormLabel>{t('modelManager.model')}</FormLabel>
|
||||||
<FormLabel>{t('modelManager.model')}</FormLabel>
|
</InformationalPopover>
|
||||||
</InformationalPopover>
|
<Tooltip label={tooltipLabel}>
|
||||||
<Combobox
|
<Box w="full">
|
||||||
value={value}
|
<Combobox
|
||||||
placeholder={placeholder}
|
value={value}
|
||||||
options={options}
|
placeholder={placeholder}
|
||||||
onChange={onChange}
|
options={options}
|
||||||
noOptionsMessage={noOptionsMessage}
|
onChange={onChange}
|
||||||
/>
|
noOptionsMessage={noOptionsMessage}
|
||||||
</FormControl>
|
/>
|
||||||
</Tooltip>
|
</Box>
|
||||||
|
</Tooltip>
|
||||||
|
</FormControl>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user