diff --git a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.spec.ts b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.spec.ts index c558b79a8ee713..55baf764620ba0 100644 --- a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.spec.ts +++ b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.spec.ts @@ -18,6 +18,18 @@ describe('CanvasNodeStatusIcons', () => { expect(getByTestId('canvas-node-status-pinned')).toBeInTheDocument(); }); + it('should not render pinned icon when disabled', () => { + const { queryByTestId } = renderComponent({ + global: { + provide: createCanvasNodeProvide({ + data: { disabled: true, pinnedData: { count: 5, visible: true } }, + }), + }, + }); + + expect(queryByTestId('canvas-node-status-pinned')).not.toBeInTheDocument(); + }); + it('should render correctly for a running node', () => { const { getByTestId } = renderComponent({ global: { diff --git a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.vue b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.vue index 9e2e79d535c3e3..71d92502059e5d 100644 --- a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.vue +++ b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/parts/CanvasNodeStatusIcons.vue @@ -15,6 +15,7 @@ const { executionRunning, hasRunData, runDataIterations, + isDisabled, } = useCanvasNode(); const hideNodeIssues = computed(() => false); // @TODO Implement this @@ -45,7 +46,7 @@ const hideNodeIssues = computed(() => false); // @TODO Implement this