fix(editor): Fix push connection on WorkerList and CommunityNodes pages (no-changelog) (#7851)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-11-28 16:45:50 +01:00 committed by GitHub
parent e87e928144
commit 4a89504d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ export default defineComponent({
if (window.Cypress !== undefined) {
return;
}
this.pushConnect();
this.pushStore.pushConnect();
this.orchestrationManagerStore.startWorkerStatusPolling();
},
beforeUnmount() {
@ -75,7 +75,7 @@ export default defineComponent({
return;
}
this.orchestrationManagerStore.stopWorkerStatusPolling();
this.pushDisconnect();
this.pushStore.pushDisconnect();
},
computed: {
...mapStores(useUIStore, useOrchestrationStore),

View file

@ -91,7 +91,7 @@ export default defineComponent({
},
async mounted() {
// 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 {
this.loading = true;
@ -137,7 +137,7 @@ export default defineComponent({
}
},
beforeUnmount() {
this.pushDisconnect();
this.pushStore.pushDisconnect();
},
computed: {
...mapStores(useCommunityNodesStore, useSettingsStore, useUIStore),