mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Fix update panel icon display. Fix title on insights dashboard (#15593)
This commit is contained in:
committed by
GitHub
parent
eb3dd199ab
commit
075b035d64
@@ -106,6 +106,7 @@ const i18n = useI18n();
|
|||||||
|
|
||||||
.link {
|
.link {
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link:hover {
|
.link:hover {
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ describe('InsightsDashboard', () => {
|
|||||||
it('should render without error', () => {
|
it('should render without error', () => {
|
||||||
mockedStore(useInsightsStore);
|
mockedStore(useInsightsStore);
|
||||||
expect(() => renderComponent()).not.toThrow();
|
expect(() => renderComponent()).not.toThrow();
|
||||||
|
expect(document.title).toBe('Insights - n8n');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should update the selected time range', async () => {
|
it('should update the selected time range', async () => {
|
||||||
|
|||||||
@@ -4,10 +4,11 @@ import { useTelemetry } from '@/composables/useTelemetry';
|
|||||||
import InsightsSummary from '@/features/insights/components/InsightsSummary.vue';
|
import InsightsSummary from '@/features/insights/components/InsightsSummary.vue';
|
||||||
import { useInsightsStore } from '@/features/insights/insights.store';
|
import { useInsightsStore } from '@/features/insights/insights.store';
|
||||||
import type { InsightsDateRange, InsightsSummaryType } from '@n8n/api-types';
|
import type { InsightsDateRange, InsightsSummaryType } from '@n8n/api-types';
|
||||||
import { computed, defineAsyncComponent, ref, watch } from 'vue';
|
import { computed, defineAsyncComponent, onMounted, ref, watch } from 'vue';
|
||||||
import { TELEMETRY_TIME_RANGE, UNLICENSED_TIME_RANGE } from '../insights.constants';
|
import { TELEMETRY_TIME_RANGE, UNLICENSED_TIME_RANGE } from '../insights.constants';
|
||||||
import InsightsDateRangeSelect from './InsightsDateRangeSelect.vue';
|
import InsightsDateRangeSelect from './InsightsDateRangeSelect.vue';
|
||||||
import InsightsUpgradeModal from './InsightsUpgradeModal.vue';
|
import InsightsUpgradeModal from './InsightsUpgradeModal.vue';
|
||||||
|
import { useDocumentTitle } from '@/composables/useDocumentTitle';
|
||||||
|
|
||||||
const InsightsPaywall = defineAsyncComponent(
|
const InsightsPaywall = defineAsyncComponent(
|
||||||
async () => await import('@/features/insights/components/InsightsPaywall.vue'),
|
async () => await import('@/features/insights/components/InsightsPaywall.vue'),
|
||||||
@@ -116,6 +117,10 @@ watch(
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
useDocumentTitle().set(i18n.baseText('insights.heading'));
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -3112,6 +3112,7 @@
|
|||||||
"freeAi.credits.showError.claim.message": "Enable to claim credits",
|
"freeAi.credits.showError.claim.message": "Enable to claim credits",
|
||||||
"freeAi.credits.showWarning.workflow.activation.title": "You're using free OpenAI API credits",
|
"freeAi.credits.showWarning.workflow.activation.title": "You're using free OpenAI API credits",
|
||||||
"freeAi.credits.showWarning.workflow.activation.description": "To make sure your workflow runs smoothly in the future, replace the free OpenAI API credits with your own API key.",
|
"freeAi.credits.showWarning.workflow.activation.description": "To make sure your workflow runs smoothly in the future, replace the free OpenAI API credits with your own API key.",
|
||||||
|
"insights.heading": "Insights",
|
||||||
"insights.lastNDays": "Last {count} days",
|
"insights.lastNDays": "Last {count} days",
|
||||||
"insights.lastNHours": "Last {count} hours",
|
"insights.lastNHours": "Last {count} hours",
|
||||||
"insights.months": "{count} months",
|
"insights.months": "{count} months",
|
||||||
|
|||||||
Reference in New Issue
Block a user