fix feature

This commit is contained in:
Charlie Kolb 2024-11-14 14:51:25 +01:00
parent 4a2adac50c
commit f54cb08be7
No known key found for this signature in database
2 changed files with 8 additions and 9 deletions

View file

@ -216,7 +216,7 @@ const canPinData = computed(() => {
}); });
const allToolsWereUnusedNotice = computed(() => { const allToolsWereUnusedNotice = computed(() => {
if (!node.value) return undefined; if (!node.value || runsCount.value === 0) return undefined;
const toolsAvailable = props.workflow.getParentNodes( const toolsAvailable = props.workflow.getParentNodes(
node.value.name, node.value.name,

View file

@ -132,6 +132,7 @@ const props = withDefaults(defineProps<Props>(), {
mappingEnabled: false, mappingEnabled: false,
isExecuting: false, isExecuting: false,
hidePagination: false, hidePagination: false,
calloutMessageKey: undefined,
}); });
const emit = defineEmits<{ const emit = defineEmits<{
search: [search: string]; search: [search: string];
@ -1352,13 +1353,11 @@ defineExpose({ enterEditMode });
<slot v-if="!displaysMultipleNodes" name="before-data" /> <slot v-if="!displaysMultipleNodes" name="before-data" />
<N8nCallout <div v-if="props.calloutMessageKey" :class="$style.calloutMessage">
v-if="props.calloutMessageKey" <N8nCallout :key="props.calloutMessageKey" theme="secondary" data-test-id="run-data-callout">
:key="props.calloutMessageKey" <N8nText v-n8n-html="props.calloutMessageKey" size="small"></N8nText>
:class="$style.callout" </N8nCallout>
theme="secondary" </div>
data-test-id="run-data-callout"
/>
<N8nCallout <N8nCallout
v-for="hint in getNodeHints()" v-for="hint in getNodeHints()"
@ -2085,7 +2084,7 @@ defineExpose({ enterEditMode });
padding: 0 var(--spacing-s); padding: 0 var(--spacing-s);
} }
.noToolsUsedAlert { .calloutMessage {
padding: var(--spacing-s); padding: var(--spacing-s);
} }
</style> </style>