mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix inverted conditional
This commit is contained in:
parent
3c150b384c
commit
f7f974a28b
@ -337,12 +337,14 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
||||
},
|
||||
{
|
||||
enabled: () =>
|
||||
disabledFeatures.includes('upscaling') ||
|
||||
!isESRGANAvailable ||
|
||||
shouldDisableToolbarButtons ||
|
||||
!isConnected ||
|
||||
isProcessing ||
|
||||
!upscalingLevel,
|
||||
Boolean(
|
||||
!disabledFeatures.includes('upscaling') &&
|
||||
isESRGANAvailable &&
|
||||
!shouldDisableToolbarButtons &&
|
||||
isConnected &&
|
||||
!isProcessing &&
|
||||
upscalingLevel
|
||||
),
|
||||
},
|
||||
[
|
||||
disabledFeatures,
|
||||
@ -366,12 +368,14 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => {
|
||||
},
|
||||
{
|
||||
enabled: () =>
|
||||
disabledFeatures.includes('faceRestore') ||
|
||||
!isGFPGANAvailable ||
|
||||
shouldDisableToolbarButtons ||
|
||||
!isConnected ||
|
||||
isProcessing ||
|
||||
!facetoolStrength,
|
||||
Boolean(
|
||||
!disabledFeatures.includes('faceRestore') &&
|
||||
isGFPGANAvailable &&
|
||||
!shouldDisableToolbarButtons &&
|
||||
isConnected &&
|
||||
!isProcessing &&
|
||||
facetoolStrength
|
||||
),
|
||||
},
|
||||
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user