diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index 16bcbb3d2b..1374221b80 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -1225,6 +1225,19 @@ function onSearchClear() { document.dispatchEvent(new KeyboardEvent('keyup', { key: '/' })); } +function getExecutionLinkLabel(task: ITaskMetadata) { + if (task.parentExecution) { + return i18n.baseText('runData.openParentExecution', { + interpolate: { id: task.parentExecution.executionId }, + }); + } + if (task.subExecution) { + return i18n.baseText('runData.openSubExecution', { + interpolate: { id: task.subExecution.executionId }, + }); + } +} + defineExpose({ enterEditMode }); @@ -1398,11 +1411,7 @@ defineExpose({ enterEditMode }); @click.stop="openRelatedExecution(activeTaskMetadata, displayMode)" > - {{ - activeTaskMetadata.parentExecution - ? $locale.baseText('runData.openParentExecution') - : $locale.baseText('runData.openSubExecution') - }} + {{ getExecutionLinkLabel(activeTaskMetadata) }} @@ -1483,11 +1492,7 @@ defineExpose({ enterEditMode }); @click.stop="openRelatedExecution(activeTaskMetadata, displayMode)" > - {{ - activeTaskMetadata.parentExecution - ? $locale.baseText('runData.openParentExecution') - : $locale.baseText('runData.openSubExecution') - }} + {{ getExecutionLinkLabel(activeTaskMetadata) }} diff --git a/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue b/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue index a55d9ecfed..48f85030ab 100644 --- a/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue +++ b/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue @@ -142,7 +142,13 @@ const outputError = computed(() => {
  • - {{ $locale.baseText('runData.openSubExecution') }} + {{ + $locale.baseText('runData.openSubExecution', { + interpolate: { + id: runMeta.subExecution?.executionId, + }, + }) + }}
  • diff --git a/packages/editor-ui/src/components/RunDataTable.vue b/packages/editor-ui/src/components/RunDataTable.vue index 7700dfe306..e5b0a85c3c 100644 --- a/packages/editor-ui/src/components/RunDataTable.vue +++ b/packages/editor-ui/src/components/RunDataTable.vue @@ -551,6 +551,7 @@ watch(focusedMappableInput, (curr) => { }, }) " + placement="left" :hide-after="0" > \"Always Output Data\".", @@ -1558,8 +1558,8 @@ "resourceMapper.addAllFields": "Add All {fieldWord}", "resourceMapper.removeAllFields": "Remove All {fieldWord}", "resourceMapper.refreshFieldList": "Refresh {fieldWord} List", - "runData.openSubExecution": "Open Sub Execution", - "runData.openParentExecution": "Open Parent Execution", + "runData.openSubExecution": "Inspect Sub-Execution {id}", + "runData.openParentExecution": "Inspect Parent Execution {id}", "runData.emptyItemHint": "This is an item, but it's empty.", "runData.emptyArray": "[empty array]", "runData.emptyString": "[empty]", @@ -1607,7 +1607,7 @@ "runData.showBinaryData": "View", "runData.startTime": "Start Time", "runData.table": "Table", - "runData.table.inspectSubExecution": "Inspect sub execution {id}", + "runData.table.inspectSubExecution": "Inspect sub-execution {id}", "runData.pindata.learnMore": "Learn more", "runData.pindata.thisDataIsPinned": "This data is pinned.", "runData.pindata.unpin": "Unpin",