mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Minor fixes to the VAESelect components
This commit is contained in:
parent
38660a2162
commit
51db4d1269
@ -335,7 +335,7 @@
|
||||
"modelManager": {
|
||||
"modelManager": "Model Manager",
|
||||
"model": "Model",
|
||||
"customVAE": "Custom VAE",
|
||||
"vae": "VAE",
|
||||
"allModels": "All Models",
|
||||
"checkpointModels": "Checkpoints",
|
||||
"diffusersModels": "Diffusers",
|
||||
|
@ -42,8 +42,8 @@ const VaeModelInputFieldComponent = (
|
||||
const data: SelectItem[] = [
|
||||
{
|
||||
value: 'auto',
|
||||
label: 'auto',
|
||||
group: 'Automatic',
|
||||
label: 'Automatic',
|
||||
group: 'Default',
|
||||
},
|
||||
];
|
||||
|
||||
@ -83,7 +83,7 @@ const VaeModelInputFieldComponent = (
|
||||
if (field.value && vaeModels?.ids.includes(field.value)) {
|
||||
return;
|
||||
}
|
||||
handleValueChanged('none');
|
||||
handleValueChanged('auto');
|
||||
}, [field.value, handleValueChanged, vaeModels?.ids]);
|
||||
|
||||
return (
|
||||
|
@ -35,8 +35,8 @@ const VAESelect = () => {
|
||||
|
||||
const data: SelectItem[] = [
|
||||
{
|
||||
value: 'none',
|
||||
label: 'None',
|
||||
value: 'auto',
|
||||
label: 'Automatic',
|
||||
group: 'Default',
|
||||
},
|
||||
];
|
||||
@ -75,13 +75,13 @@ const VAESelect = () => {
|
||||
if (selectedModelId && vaeModels?.ids.includes(selectedModelId)) {
|
||||
return;
|
||||
}
|
||||
handleChangeModel('none');
|
||||
handleChangeModel('auto');
|
||||
}, [handleChangeModel, vaeModels?.ids, selectedModelId]);
|
||||
|
||||
return (
|
||||
<IAIMantineSelect
|
||||
tooltip={selectedModel?.description}
|
||||
label={t('modelManager.customVAE')}
|
||||
label={t('modelManager.vae')}
|
||||
value={selectedModelId}
|
||||
placeholder="Pick one"
|
||||
data={data}
|
||||
|
Loading…
Reference in New Issue
Block a user