mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -08:00
fix(editor): Fix push connection on WorkerList and CommunityNodes pages (no-changelog) (#7851)
This commit is contained in:
parent
e87e928144
commit
4a89504d54
|
@ -67,7 +67,7 @@ export default defineComponent({
|
||||||
if (window.Cypress !== undefined) {
|
if (window.Cypress !== undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.pushConnect();
|
this.pushStore.pushConnect();
|
||||||
this.orchestrationManagerStore.startWorkerStatusPolling();
|
this.orchestrationManagerStore.startWorkerStatusPolling();
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
|
@ -75,7 +75,7 @@ export default defineComponent({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.orchestrationManagerStore.stopWorkerStatusPolling();
|
this.orchestrationManagerStore.stopWorkerStatusPolling();
|
||||||
this.pushDisconnect();
|
this.pushStore.pushDisconnect();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores(useUIStore, useOrchestrationStore),
|
...mapStores(useUIStore, useOrchestrationStore),
|
||||||
|
|
|
@ -91,7 +91,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
// The push connection is needed here to receive `reloadNodeType` and `removeNodeType` events when community nodes are installed, updated, or removed.
|
// The push connection is needed here to receive `reloadNodeType` and `removeNodeType` events when community nodes are installed, updated, or removed.
|
||||||
this.pushConnect();
|
this.pushStore.pushConnect();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
@ -137,7 +137,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
this.pushDisconnect();
|
this.pushStore.pushDisconnect();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores(useCommunityNodesStore, useSettingsStore, useUIStore),
|
...mapStores(useCommunityNodesStore, useSettingsStore, useUIStore),
|
||||||
|
|
Loading…
Reference in a new issue