Beam: also enable method selection on AutoStart

This commit is contained in:
Enrico Ros
2024-05-25 15:51:37 -07:00
parent 4f9d55eb42
commit fe1a498da0
+3 -2
View File
@@ -81,8 +81,9 @@ export function BeamGatherPane(props: {
setCurrentGatherLlmId: state.setCurrentGatherLlmId,
})));
const gatherAutoStartAfterScatter = useModuleBeamStore(state => state.gatherAutoStartAfterScatter);
const disableUnlessAutoStart = !props.canGather && !gatherAutoStartAfterScatter;
const [_, gatherLlmComponent/*, gatherLlmIcon*/] = useLLMSelect(
currentGatherLlmId, setCurrentGatherLlmId, props.isMobile ? '' : 'Merge Model', true, !props.canGather && !gatherAutoStartAfterScatter,
currentGatherLlmId, setCurrentGatherLlmId, props.isMobile ? '' : 'Merge Model', true, disableUnlessAutoStart,
);
// derived state
@@ -128,7 +129,7 @@ export function BeamGatherPane(props: {
<ButtonGroup
variant='outlined'
size='md'
disabled={!props.canGather}
disabled={disableUnlessAutoStart}
// sx={{ boxShadow: isNoFactorySelected ? 'xs' : undefined }}
>
{FUSION_FACTORIES.map(factory => {