diff --git a/invokeai/frontend/web/src/features/nodes/components/nodes/InvocationNode.tsx b/invokeai/frontend/web/src/features/nodes/components/nodes/InvocationNode.tsx index f5274bf966..4e8369c4ff 100644 --- a/invokeai/frontend/web/src/features/nodes/components/nodes/InvocationNode.tsx +++ b/invokeai/frontend/web/src/features/nodes/components/nodes/InvocationNode.tsx @@ -1,10 +1,10 @@ -import { Flex, Icon } from '@chakra-ui/react'; +import { Box, Flex, Text } from '@chakra-ui/react'; import { useAppSelector } from 'app/store/storeHooks'; import { makeTemplateSelector } from 'features/nodes/store/util/makeTemplateSelector'; +import { DRAG_HANDLE_CLASSNAME } from 'features/nodes/types/constants'; import { InvocationNodeData } from 'features/nodes/types/types'; import { map } from 'lodash-es'; import { memo, useMemo } from 'react'; -import { FaExclamationCircle } from 'react-icons/fa'; import { NodeProps } from 'reactflow'; import NodeCollapseButton from '../Invocation/NodeCollapseButton'; import NodeCollapsedHandles from '../Invocation/NodeCollapsedHandles'; @@ -32,25 +32,52 @@ const InvocationNode = (props: NodeProps) => { return ( - + + > + {data.label ? `${data.label} (${data.type})` : data.type} + + {isOpen && ( + + + Unknown node type: + + {data.type} + + + + )} ); }