mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Cleanup Executions page component (#8053)
## Summary Remove duplicated `created` VUE component lifecycle method
This commit is contained in:
parent
439a22d68f
commit
2689c37e87
|
@ -364,9 +364,6 @@ export default defineComponent({
|
||||||
workflows: [] as IWorkflowShortResponse[],
|
workflows: [] as IWorkflowShortResponse[],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.autoRefresh = this.autoRefreshEnabled;
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
setPageTitle(`n8n - ${this.pageTitle}`);
|
setPageTitle(`n8n - ${this.pageTitle}`);
|
||||||
|
|
||||||
|
@ -374,6 +371,7 @@ export default defineComponent({
|
||||||
document.addEventListener('visibilitychange', this.onDocumentVisibilityChange);
|
document.addEventListener('visibilitychange', this.onDocumentVisibilityChange);
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
|
this.autoRefresh = this.autoRefreshEnabled;
|
||||||
await this.loadWorkflows();
|
await this.loadWorkflows();
|
||||||
|
|
||||||
void this.externalHooks.run('executionsList.openDialog');
|
void this.externalHooks.run('executionsList.openDialog');
|
||||||
|
@ -945,7 +943,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async startAutoRefreshInterval() {
|
async startAutoRefreshInterval() {
|
||||||
if (this.autoRefresh && this.route.name === VIEWS.WORKFLOW_EXECUTIONS) {
|
if (this.autoRefresh && this.route.name === VIEWS.EXECUTIONS) {
|
||||||
await this.loadAutoRefresh();
|
await this.loadAutoRefresh();
|
||||||
this.autoRefreshTimeout = setTimeout(() => {
|
this.autoRefreshTimeout = setTimeout(() => {
|
||||||
void this.startAutoRefreshInterval();
|
void this.startAutoRefreshInterval();
|
||||||
|
|
Loading…
Reference in a new issue