From d05e00daedaea5cbe41f0921688dd282faefc543 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Thu, 15 Aug 2024 12:37:18 +0300 Subject: [PATCH 1/2] fix: remove item count from pinned data status icon --- .../elements/nodes/render-types/parts/CanvasNodeStatusIcons.vue | 2 -- 1 file changed, 2 deletions(-) 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 6c5136bcdf7b6..e3736e54b7c28 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 @@ -7,7 +7,6 @@ import { useCanvasNode } from '@/composables/useCanvasNode'; const nodeHelpers = useNodeHelpers(); const { - pinnedDataCount, hasPinnedData, issues, hasIssues, @@ -51,7 +50,6 @@ const hideNodeIssues = computed(() => false); // @TODO Implement this :class="[$style.status, $style.pinnedData]" > - {{ pinnedDataCount }}
From efe500577b5e8c2aa70612ed3a0e411f0cc9dc64 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Thu, 15 Aug 2024 12:40:20 +0300 Subject: [PATCH 2/2] test: update status icon tests --- .../nodes/render-types/parts/CanvasNodeStatusIcons.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 5327d715240ce..1488006841118 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 @@ -15,7 +15,7 @@ describe('CanvasNodeStatusIcons', () => { }, }); - expect(getByTestId('canvas-node-status-pinned')).toHaveTextContent('5'); + expect(getByTestId('canvas-node-status-pinned')).toBeInTheDocument(); }); it('should render correctly for a running node', () => {