mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
fix(editor): Fix push connection on WorkerList and CommunityNodes pages (no-changelog) (#7851)
This commit is contained in:
committed by
GitHub
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),
|
||||||
|
|||||||
Reference in New Issue
Block a user