mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-15 00:58:02 -05:00
feat(ui): disable starter bundle button when all installed
This commit is contained in:
committed by
Mary Hipp Rogers
parent
985dcd9862
commit
166548246d
@@ -49,12 +49,15 @@ export const StarterBundle = ({ bundleName, bundle }: { bundleName: string; bund
|
||||
</Flex>
|
||||
}
|
||||
>
|
||||
<Button size="sm" onClick={handleClickBundle} py={6}>
|
||||
<Button size="sm" onClick={handleClickBundle} py={6} isDisabled={modelsToInstall.install.length === 0}>
|
||||
<Flex flexDir="column">
|
||||
<Text>{isMainModelBase(bundleName) ? MODEL_TYPE_SHORT_MAP[bundleName] : bundleName}</Text>
|
||||
<Text fontSize="xs">
|
||||
({bundle.length} {t('settings.models')})
|
||||
</Text>
|
||||
{modelsToInstall.install.length > 0 && (
|
||||
<Text fontSize="xs">
|
||||
({bundle.length} {t('settings.models')})
|
||||
</Text>
|
||||
)}
|
||||
{modelsToInstall.install.length === 0 && <Text fontSize="xs">{t('common.installed')}</Text>}
|
||||
</Flex>
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user