diff --git a/cypress/e2e/47-subworkflow-debugging.cy.ts b/cypress/e2e/47-subworkflow-debugging.cy.ts
index f808bdd044..725b6b32c4 100644
--- a/cypress/e2e/47-subworkflow-debugging.cy.ts
+++ b/cypress/e2e/47-subworkflow-debugging.cy.ts
@@ -40,7 +40,7 @@ describe('Subworkflow debugging', () => {
openNode('Execute Workflow with param');
getOutputPanelItemsCount().should('contain.text', '2 items, 1 sub-execution');
- getOutputPanelRelatedExecutionLink().should('contain.text', 'Inspect Sub-Execution');
+ getOutputPanelRelatedExecutionLink().should('contain.text', 'View sub-execution');
getOutputPanelRelatedExecutionLink().should('have.attr', 'href');
// ensure workflow executed and waited on output
@@ -64,7 +64,7 @@ describe('Subworkflow debugging', () => {
openNode('Execute Workflow with param2');
getOutputPanelItemsCount().should('not.exist');
- getOutputPanelRelatedExecutionLink().should('contain.text', 'Inspect Sub-Execution');
+ getOutputPanelRelatedExecutionLink().should('contain.text', 'View sub-execution');
getOutputPanelRelatedExecutionLink().should('have.attr', 'href');
// ensure workflow executed but returned same data as input
@@ -109,7 +109,7 @@ describe('Subworkflow debugging', () => {
openNode('Execute Workflow with param');
getOutputPanelItemsCount().should('contain.text', '2 items, 1 sub-execution');
- getOutputPanelRelatedExecutionLink().should('contain.text', 'Inspect Sub-Execution');
+ getOutputPanelRelatedExecutionLink().should('contain.text', 'View sub-execution');
getOutputPanelRelatedExecutionLink().should('have.attr', 'href');
// ensure workflow executed and waited on output
@@ -125,7 +125,7 @@ describe('Subworkflow debugging', () => {
getExecutionPreviewOutputPanelRelatedExecutionLink().should(
'include.text',
- 'Inspect Parent Execution',
+ 'View parent execution',
);
getExecutionPreviewOutputPanelRelatedExecutionLink()
diff --git a/packages/editor-ui/src/components/RunData.test.ts b/packages/editor-ui/src/components/RunData.test.ts
index 417bd6fb61..26a58b06ac 100644
--- a/packages/editor-ui/src/components/RunData.test.ts
+++ b/packages/editor-ui/src/components/RunData.test.ts
@@ -282,7 +282,7 @@ describe('RunData', () => {
});
expect(getByTestId('related-execution-link')).toBeInTheDocument();
- expect(getByTestId('related-execution-link')).toHaveTextContent('Inspect Sub-Execution 123');
+ expect(getByTestId('related-execution-link')).toHaveTextContent('View sub-execution');
expect(resolveRelatedExecutionUrl).toHaveBeenCalledWith(metadata);
expect(getByTestId('related-execution-link')).toHaveAttribute('href', MOCK_EXECUTION_URL);
@@ -311,7 +311,7 @@ describe('RunData', () => {
});
expect(getByTestId('related-execution-link')).toBeInTheDocument();
- expect(getByTestId('related-execution-link')).toHaveTextContent('Inspect Parent Execution 123');
+ expect(getByTestId('related-execution-link')).toHaveTextContent('View parent execution');
expect(resolveRelatedExecutionUrl).toHaveBeenCalledWith(metadata);
expect(getByTestId('related-execution-link')).toHaveAttribute('href', MOCK_EXECUTION_URL);
@@ -344,7 +344,7 @@ describe('RunData', () => {
});
expect(getByTestId('related-execution-link')).toBeInTheDocument();
- expect(getByTestId('related-execution-link')).toHaveTextContent('Inspect Sub-Execution 123');
+ expect(getByTestId('related-execution-link')).toHaveTextContent('View sub-execution 123');
expect(resolveRelatedExecutionUrl).toHaveBeenCalledWith(metadata);
expect(getByTestId('related-execution-link')).toHaveAttribute('href', MOCK_EXECUTION_URL);
@@ -389,7 +389,7 @@ describe('RunData', () => {
});
expect(getByTestId('related-execution-link')).toBeInTheDocument();
- expect(getByTestId('related-execution-link')).toHaveTextContent('Inspect Sub-Execution 123');
+ expect(getByTestId('related-execution-link')).toHaveTextContent('View sub-execution 123');
expect(queryByTestId('ndv-items-count')).not.toBeInTheDocument();
expect(getByTestId('run-selector')).toBeInTheDocument();
diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue
index 57d0c8dc82..9634e1e04f 100644
--- a/packages/editor-ui/src/components/RunData.vue
+++ b/packages/editor-ui/src/components/RunData.vue
@@ -1263,9 +1263,13 @@ function getExecutionLinkLabel(task: ITaskMetadata): string | undefined {
}
if (task.subExecution) {
- return i18n.baseText('runData.openSubExecution', {
- interpolate: { id: task.subExecution.executionId },
- });
+ if (activeTaskMetadata.value?.subExecutionsCount === 1) {
+ return i18n.baseText('runData.openSubExecutionSingle');
+ } else {
+ return i18n.baseText('runData.openSubExecutionWithId', {
+ interpolate: { id: task.subExecution.executionId },
+ });
+ }
}
return;
diff --git a/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue b/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue
index 9812bff6fe..e065e46250 100644
--- a/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue
+++ b/packages/editor-ui/src/components/RunDataAi/RunDataAiContent.vue
@@ -149,7 +149,7 @@ const outputError = computed(() => {
>
{{
- i18n.baseText('runData.openSubExecution', {
+ i18n.baseText('runData.openSubExecutionWithId', {
interpolate: {
id: runMeta.subExecution?.executionId,
},
diff --git a/packages/editor-ui/src/components/RunDataTable.vue b/packages/editor-ui/src/components/RunDataTable.vue
index 68e80a38a8..925c57cfee 100644
--- a/packages/editor-ui/src/components/RunDataTable.vue
+++ b/packages/editor-ui/src/components/RunDataTable.vue
@@ -439,7 +439,7 @@ watch(focusedMappableInput, (curr) => {
>