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) { 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),

View file

@ -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),