mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
fix(editor): Remove item count from pinned data status icon in new canvas (no-changelog) (#10431)
This commit is contained in:
parent
6d698fd97d
commit
5754fe4ec4
|
@ -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', () => {
|
it('should render correctly for a running node', () => {
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { useCanvasNode } from '@/composables/useCanvasNode';
|
||||||
const nodeHelpers = useNodeHelpers();
|
const nodeHelpers = useNodeHelpers();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
pinnedDataCount,
|
|
||||||
hasPinnedData,
|
hasPinnedData,
|
||||||
issues,
|
issues,
|
||||||
hasIssues,
|
hasIssues,
|
||||||
|
@ -51,7 +50,6 @@ const hideNodeIssues = computed(() => false); // @TODO Implement this
|
||||||
:class="[$style.status, $style.pinnedData]"
|
:class="[$style.status, $style.pinnedData]"
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon="thumbtack" />
|
<FontAwesomeIcon icon="thumbtack" />
|
||||||
<span v-if="pinnedDataCount > 1" :class="$style.count"> {{ pinnedDataCount }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="executionStatus === 'unknown'">
|
<div v-else-if="executionStatus === 'unknown'">
|
||||||
<!-- Do nothing, unknown means the node never executed -->
|
<!-- Do nothing, unknown means the node never executed -->
|
||||||
|
|
Loading…
Reference in a new issue