diff --git a/packages/frontend/editor-ui/src/components/RunData.vue b/packages/frontend/editor-ui/src/components/RunData.vue index f8c616f33c..5aad5b0361 100644 --- a/packages/frontend/editor-ui/src/components/RunData.vue +++ b/packages/frontend/editor-ui/src/components/RunData.vue @@ -86,11 +86,11 @@ import { } from '@n8n/design-system'; import { storeToRefs } from 'pinia'; import { useRoute } from 'vue-router'; -import { useExecutionHelpers } from '@/composables/useExecutionHelpers'; import { useUIStore } from '@/stores/ui.store'; import { useSchemaPreviewStore } from '@/stores/schemaPreview.store'; import { asyncComputed } from '@vueuse/core'; import { usePostHog } from '@/stores/posthog.store'; +import ViewSubExecution from './ViewSubExecution.vue'; const LazyRunDataTable = defineAsyncComponent( async () => await import('@/components/RunDataTable.vue'), @@ -200,7 +200,6 @@ const nodeHelpers = useNodeHelpers(); const externalHooks = useExternalHooks(); const telemetry = useTelemetry(); const i18n = useI18n(); -const { trackOpeningRelatedExecution, resolveRelatedExecutionUrl } = useExecutionHelpers(); const node = toRef(props, 'node'); @@ -558,12 +557,6 @@ const activeTaskMetadata = computed((): ITaskMetadata | null => { return workflowRunData.value?.[node.value.name]?.[props.runIndex]?.metadata ?? null; }); -const hasRelatedExecution = computed(() => { - return Boolean( - activeTaskMetadata.value?.subExecution ?? activeTaskMetadata.value?.parentExecution, - ); -}); - const hasInputOverwrite = computed((): boolean => { if (!node.value) { return false; @@ -1313,26 +1306,6 @@ function onSearchClear() { document.dispatchEvent(new KeyboardEvent('keyup', { key: '/' })); } -function getExecutionLinkLabel(task: ITaskMetadata): string | undefined { - if (task.parentExecution) { - return i18n.baseText('runData.openParentExecution', { - interpolate: { id: task.parentExecution.executionId }, - }); - } - - if (task.subExecution) { - if (activeTaskMetadata.value?.subExecutionsCount === 1) { - return i18n.baseText('runData.openSubExecutionSingle'); - } else { - return i18n.baseText('runData.openSubExecutionWithId', { - interpolate: { id: task.subExecution.executionId }, - }); - } - } - - return; -} - defineExpose({ enterEditMode }); @@ -1504,20 +1477,11 @@ defineExpose({ enterEditMode }); - - - - {{ getExecutionLinkLabel(activeTaskMetadata) }} - + @@ -1544,6 +1508,11 @@ defineExpose({ enterEditMode }); data-test-id="branches" > +
- - - - {{ getExecutionLinkLabel(activeTaskMetadata) }} - +
@@ -2304,15 +2264,6 @@ defineExpose({ enterEditMode }); .schema { padding: 0 var(--spacing-s); } - -.relatedExecutionInfo { - font-size: var(--font-size-s); - margin-left: var(--spacing-3xs); - - svg { - padding-bottom: 2px; - } -}