feat(editor): Overhaul document title management (#10999)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-09-30 10:57:25 +02:00
committed by GitHub
parent 63e6f1fa38
commit bb2895689f
31 changed files with 155 additions and 83 deletions

View File

@@ -10,7 +10,7 @@ import { useI18n } from '@/composables/useI18n';
import { useToast } from '@/composables/useToast';
import { useUIStore } from '@/stores/ui.store';
import { useOrchestrationStore } from '@/stores/orchestration.store';
import { setPageTitle } from '@/utils/htmlUtils';
import { useDocumentTitle } from '@/composables/useDocumentTitle';
import WorkerCard from './Workers/WorkerCard.ee.vue';
import { usePushConnection } from '@/composables/usePushConnection';
import { usePushConnectionStore } from '@/stores/pushConnection.store';
@@ -36,6 +36,7 @@ export default defineComponent({
i18n,
pushConnection,
...useToast(),
documentTitle: useDocumentTitle(),
};
},
computed: {
@@ -58,7 +59,7 @@ export default defineComponent({
},
},
mounted() {
setPageTitle(`n8n - ${this.pageTitle}`);
this.documentTitle.set(this.pageTitle);
this.$telemetry.track('User viewed worker view', {
instance_id: this.rootStore.instanceId,