feat(ui): update SAM module to w/ minor improvements from filter module

This commit is contained in:
psychedelicious
2024-10-30 07:04:25 +10:00
parent a7a89c9de1
commit 6cccd67ecd
2 changed files with 19 additions and 17 deletions

View File

@@ -115,7 +115,7 @@ const SelectObjectContent = memo(
onClick={adapter.segmentAnything.processImmediate}
loadingText={t('controlLayers.selectObject.process')}
variant="ghost"
isDisabled={isProcessing || !hasPoints || autoProcess}
isDisabled={isProcessing || !hasPoints || (autoProcess && hasImageState)}
>
{t('controlLayers.selectObject.process')}
{isProcessing && <Spinner ms={3} boxSize={5} color="base.600" />}