mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-30 00:07:02 +02:00
fix(editor): Fix update panel icon display. Fix title on insights dashboard (#15593)
This commit is contained in:
parent
eb3dd199ab
commit
075b035d64
|
|
@ -106,6 +106,7 @@ const i18n = useI18n();
|
|||
|
||||
.link {
|
||||
padding-left: 0px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.link:hover {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ describe('InsightsDashboard', () => {
|
|||
it('should render without error', () => {
|
||||
mockedStore(useInsightsStore);
|
||||
expect(() => renderComponent()).not.toThrow();
|
||||
expect(document.title).toBe('Insights - n8n');
|
||||
});
|
||||
|
||||
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 { useInsightsStore } from '@/features/insights/insights.store';
|
||||
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 InsightsDateRangeSelect from './InsightsDateRangeSelect.vue';
|
||||
import InsightsUpgradeModal from './InsightsUpgradeModal.vue';
|
||||
import { useDocumentTitle } from '@/composables/useDocumentTitle';
|
||||
|
||||
const InsightsPaywall = defineAsyncComponent(
|
||||
async () => await import('@/features/insights/components/InsightsPaywall.vue'),
|
||||
|
|
@ -116,6 +117,10 @@ watch(
|
|||
immediate: true,
|
||||
},
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
useDocumentTitle().set(i18n.baseText('insights.heading'));
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -3112,6 +3112,7 @@
|
|||
"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.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.lastNHours": "Last {count} hours",
|
||||
"insights.months": "{count} months",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user