File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
invokeai/frontend/web/src/features/nodes/components/panels Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ import { HStack } from '@chakra-ui/react' ;
12import { useAppDispatch } from 'app/storeHooks' ;
23import IAIButton from 'common/components/IAIButton' ;
34import { memo , useCallback } from 'react' ;
45import { Panel } from 'reactflow' ;
6+ import { receivedOpenAPISchema } from 'services/thunks/schema' ;
57import { nodesGraphBuilt } from 'services/thunks/session' ;
68
79const TopCenterPanel = ( ) => {
@@ -11,11 +13,18 @@ const TopCenterPanel = () => {
1113 dispatch ( nodesGraphBuilt ( ) ) ;
1214 } , [ dispatch ] ) ;
1315
16+ const handleReloadSchema = useCallback ( ( ) => {
17+ dispatch ( receivedOpenAPISchema ( ) ) ;
18+ } , [ dispatch ] ) ;
19+
1420 return (
1521 < Panel position = "top-center" >
16- < IAIButton colorScheme = "accent" onClick = { handleInvoke } >
17- Will it blend?
18- </ IAIButton >
22+ < HStack >
23+ < IAIButton colorScheme = "accent" onClick = { handleInvoke } >
24+ Will it blend?
25+ </ IAIButton >
26+ < IAIButton onClick = { handleReloadSchema } > Reload Schema</ IAIButton >
27+ </ HStack >
1928 </ Panel >
2029 ) ;
2130} ;
You can’t perform that action at this time.
0 commit comments