diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index 3d05ed10aa..6c6e6d566c 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -98,12 +98,6 @@ declare module 'jsplumb' { } } -declare module 'n8n-workflow' { - export interface ITaskData { - updatedAt?: number; - } -} - // EndpointOptions from jsplumb seems incomplete and wrong so we define an own one export interface IEndpointOptions { anchor?: any; // tslint:disable-line:no-any @@ -968,7 +962,7 @@ export type IFormBoxConfig = { export interface ITab { value: string | number; label?: string; - href?: string; + href?: string, icon?: string; align?: 'right'; -} +}; diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index 9290fc8009..3e6cb36c8e 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -270,6 +270,7 @@ export default mixins( MAX_DISPLAY_ITEMS_AUTO_ALL, currentPage: 1, pageSize: 10, + staleData: false, }; }, mounted() { @@ -311,7 +312,7 @@ export default mixins( node (): INodeUi | null { return this.$store.getters.activeNode; }, - runTaskData(): ITaskData | null { + runMetadata () { if (!this.node || this.workflowExecution === null) { return null; } @@ -326,28 +327,12 @@ export default mixins( return null; } - return runData[this.node.name][this.runIndex]; - }, - runMetadata (): {executionTime: number, startTime: string} | null { - if (!this.runTaskData) { - return null; - } - + const taskData: ITaskData = runData[this.node.name][this.runIndex]; return { - executionTime: this.runTaskData.executionTime, - startTime: new Date(this.runTaskData.startTime).toLocaleString(), + executionTime: taskData.executionTime, + startTime: new Date(taskData.startTime).toLocaleString(), }; }, - staleData (): boolean { - if (!this.node || !this.runTaskData || !this.runTaskData.updatedAt) { - return false; - } - - const updatedAt = this.runTaskData.updatedAt; - const runAt = this.runTaskData.startTime; - - return updatedAt > runAt; - }, dataCount (): number { return this.getDataCount(this.runIndex, this.outputIndex); }, diff --git a/packages/editor-ui/src/store.ts b/packages/editor-ui/src/store.ts index 0f46b1541d..418a22a33f 100644 --- a/packages/editor-ui/src/store.ts +++ b/packages/editor-ui/src/store.ts @@ -470,12 +470,6 @@ export const store = new Vuex.Store({ state.stateIsDirty = true; Vue.set(node, 'parameters', updateInformation.value); - if (state.workflowExecutionData && state.workflowExecutionData.data.resultData.runData[node.name]) { - const nodeRuns = state.workflowExecutionData.data.resultData.runData[node.name]; - nodeRuns.forEach((node) => { - Vue.set(node, 'updatedAt', new Date().getTime()); - }); - } }, // Node-Index