added info popover back to model, updated description hover to combobox only

This commit is contained in:
Jennifer Player 2024-04-11 20:47:49 -04:00 committed by psychedelicious
parent 489d485907
commit bd7c8cd517

View File

@ -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 { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
@ -46,11 +46,12 @@ const ParamMainModelSelect = () => {
});
return (
<Tooltip label={tooltipLabel}>
<FormControl isDisabled={!modelConfigs.length} isInvalid={!value || !modelConfigs.length}>
<InformationalPopover feature="paramModel">
<FormLabel>{t('modelManager.model')}</FormLabel>
</InformationalPopover>
<Tooltip label={tooltipLabel}>
<Box w="full">
<Combobox
value={value}
placeholder={placeholder}
@ -58,8 +59,9 @@ const ParamMainModelSelect = () => {
onChange={onChange}
noOptionsMessage={noOptionsMessage}
/>
</FormControl>
</Box>
</Tooltip>
</FormControl>
);
};