File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
invokeai/frontend/web/src/features/nodes/components/ui Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { Box } from '@chakra-ui/react' ;
2- import { readinessSelector } from 'app/selectors/readinessSelector' ;
32import { userInvoked } from 'app/store/actions' ;
43import { useAppDispatch , useAppSelector } from 'app/store/storeHooks' ;
54import IAIButton , { IAIButtonProps } from 'common/components/IAIButton' ;
65import IAIIconButton , {
76 IAIIconButtonProps ,
87} from 'common/components/IAIIconButton' ;
8+ import { useIsReadyToInvoke } from 'common/hooks/useIsReadyToInvoke' ;
99import ProgressBar from 'features/system/components/ProgressBar' ;
1010import { activeTabNameSelector } from 'features/ui/store/uiSelectors' ;
1111import { useCallback } from 'react' ;
@@ -21,9 +21,8 @@ interface InvokeButton
2121export default function NodeInvokeButton ( props : InvokeButton ) {
2222 const { iconButton = false , ...rest } = props ;
2323 const dispatch = useAppDispatch ( ) ;
24- const { isReady } = useAppSelector ( readinessSelector ) ;
2524 const activeTabName = useAppSelector ( activeTabNameSelector ) ;
26-
25+ const isReady = useIsReadyToInvoke ( ) ;
2726 const handleInvoke = useCallback ( ( ) => {
2827 dispatch ( userInvoked ( 'nodes' ) ) ;
2928 } , [ dispatch ] ) ;
You can’t perform that action at this time.
0 commit comments