fix(editor): Fix opening executions tab from a new, unsaved workflow (#10652)
This commit is contained in:
@@ -36,7 +36,7 @@ function getWorkflowRoute(): { name: string; params: {} } {
|
||||
<template>
|
||||
<div :class="['workflow-executions-container', $style.container]">
|
||||
<div v-if="executionCount === 0" :class="[$style.messageContainer, $style.noExecutionsMessage]">
|
||||
<div v-if="!containsTrigger">
|
||||
<div v-if="!containsTrigger" data-test-id="workflow-execution-no-trigger-content">
|
||||
<N8nHeading tag="h2" size="xlarge" color="text-dark" class="mb-2xs">
|
||||
{{ locale.baseText('executionsLandingPage.emptyState.noTrigger.heading') }}
|
||||
</N8nHeading>
|
||||
@@ -47,7 +47,7 @@ function getWorkflowRoute(): { name: string; params: {} } {
|
||||
{{ locale.baseText('executionsLandingPage.emptyState.noTrigger.buttonText') }}
|
||||
</N8nButton>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-else data-test-id="workflow-execution-no-content">
|
||||
<N8nHeading tag="h2" size="xlarge" color="text-dark" class="mb-2xs">
|
||||
{{ locale.baseText('executionsLandingPage.emptyState.heading') }}
|
||||
</N8nHeading>
|
||||
|
||||
@@ -500,8 +500,8 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, () => {
|
||||
executingNode.value = executingNode.value.filter((name) => name !== nodeName);
|
||||
}
|
||||
|
||||
function setWorkflowId(id: string) {
|
||||
workflow.value.id = id === 'new' ? PLACEHOLDER_EMPTY_WORKFLOW_ID : id;
|
||||
function setWorkflowId(id?: string) {
|
||||
workflow.value.id = !id || id === 'new' ? PLACEHOLDER_EMPTY_WORKFLOW_ID : id;
|
||||
}
|
||||
|
||||
function setUsedCredentials(data: IUsedCredential[]) {
|
||||
|
||||
Reference in New Issue
Block a user