fix(editor): Fix various typecheck issues (no-changelog) (#8739)

This commit is contained in:
Alex Grozav
2024-02-26 16:05:12 +02:00
committed by GitHub
parent 09524304e6
commit c0be43bdbe
16 changed files with 91 additions and 74 deletions

View File

@@ -2,7 +2,7 @@ import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { i18n as locale } from '@/plugins/i18n';
import type { IExecutionsSummary } from 'n8n-workflow';
import type { ExecutionSummary } from 'n8n-workflow';
import { convertToDisplayDate } from '@/utils/formatters/dateFormatter';
export interface IExecutionUIData {
@@ -24,15 +24,15 @@ export const executionHelpers = defineComponent({
currentWorkflow(): string {
return this.$route.params.name || this.workflowsStore.workflowId;
},
executions(): IExecutionsSummary[] {
executions(): ExecutionSummary[] {
return this.workflowsStore.currentWorkflowExecutions;
},
activeExecution(): IExecutionsSummary | null {
activeExecution(): ExecutionSummary | null {
return this.workflowsStore.activeWorkflowExecution;
},
},
methods: {
getExecutionUIDetails(execution: IExecutionsSummary): IExecutionUIData {
getExecutionUIDetails(execution: ExecutionSummary): IExecutionUIData {
const status = {
name: 'unknown',
startTime: this.formatDate(execution.startedAt),