feat: Add link to parent execution

This commit is contained in:
Mutasem Aldmour 2024-11-07 15:34:09 +01:00
parent 932ca0781a
commit 3df228c52f
No known key found for this signature in database
GPG key ID: 3DFA8122BB7FD6B8
2 changed files with 16 additions and 8 deletions

View file

@ -1432,15 +1432,17 @@ export default defineComponent({
<n8n-text size="small" v-n8n-html="hint.message"></n8n-text>
</n8n-callout>
<div :class="$style.execution">
<n8n-button
v-if="subWorkflowData && !(paneType === 'input' && hasInputOverwrite)"
:label="`Open ${
nodeType?.group?.includes('trigger') ? 'parent' : 'sub'
} execution ${subWorkflowData.executionId}`"
type="secondary"
<div :class="$style.parentExecutionInfo">
<a
v-if="
subWorkflowData &&
!(paneType === 'input' && hasInputOverwrite) &&
nodeType?.group?.includes('trigger')
"
@click.stop="openExecutionInNewTab(subWorkflowData.executionId, subWorkflowData.workflowId)"
/>
>
{{ $locale.baseText('runData.openParentExecution') }}
</a>
<div v-if="itemSubWorkflowData.length">
<n8n-select
size="small"
@ -2168,6 +2170,11 @@ export default defineComponent({
.schema {
padding: 0 var(--spacing-s);
}
.parentExecutionInfo {
font-size: var(--font-size-xs);
padding: 0 0 var(--spacing-s) var(--spacing-s);
}
</style>
<style lang="scss" scoped>

View file

@ -1553,6 +1553,7 @@
"resourceMapper.addAllFields": "Add All {fieldWord}",
"resourceMapper.removeAllFields": "Remove All {fieldWord}",
"resourceMapper.refreshFieldList": "Refresh {fieldWord} List",
"runData.openParentExecution": "Open Parent Execution",
"runData.emptyItemHint": "This is an item, but it's empty.",
"runData.emptyArray": "[empty array]",
"runData.emptyString": "[empty]",