mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat: Disable convert button on SDXL and Refiner Checkpoints
This commit is contained in:
parent
7221a238b3
commit
c16325a244
@ -1,4 +1,4 @@
|
||||
import { Divider, Flex, Text } from '@chakra-ui/react';
|
||||
import { Badge, Divider, Flex, Text } from '@chakra-ui/react';
|
||||
import { useForm } from '@mantine/form';
|
||||
import { makeToast } from 'app/components/Toaster';
|
||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||
@ -115,7 +115,20 @@ export default function CheckpointModelEdit(props: CheckpointModelEditProps) {
|
||||
{MODEL_TYPE_MAP[model.base_model]} Model
|
||||
</Text>
|
||||
</Flex>
|
||||
<ModelConvert model={model} />
|
||||
{!['sdxl', 'sdxl-refiner'].includes(model.base_model) ? (
|
||||
<ModelConvert model={model} />
|
||||
) : (
|
||||
<Badge
|
||||
sx={{
|
||||
p: 2,
|
||||
borderRadius: 4,
|
||||
bg: 'error.200',
|
||||
_dark: { bg: 'error.400' },
|
||||
}}
|
||||
>
|
||||
Conversion Not Supported
|
||||
</Badge>
|
||||
)}
|
||||
</Flex>
|
||||
<Divider />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user