fix(editor): When cloud users click on "How to update your n8n version" auto-login them before redirecting to the dashboard (no-changelog) (#11467)

This commit is contained in:
Ricardo Espinoza
2024-11-01 11:01:54 -04:00
committed by GitHub
parent 602355a5c1
commit 78e7d8dc8c
33 changed files with 503 additions and 205 deletions

View File

@@ -20,6 +20,7 @@ import type { DatatableColumn, EnvironmentVariable } from '@/Interface';
import { uid } from 'n8n-design-system/utils';
import { getResourcePermissions } from '@/permissions';
import type { BaseTextKey } from '@/plugins/i18n';
import { usePageRedirectionHelper } from '@/composables/usePageRedirectionHelper';
const settingsStore = useSettingsStore();
const environmentsStore = useEnvironmentsStore();
@@ -30,6 +31,7 @@ const i18n = useI18n();
const message = useMessage();
const sourceControlStore = useSourceControlStore();
const documentTitle = useDocumentTitle();
const pageRedirectionHelper = usePageRedirectionHelper();
let sourceControlStoreUnsubscribe = () => {};
const layoutRef = ref<InstanceType<typeof ResourcesListLayout> | null>(null);
@@ -230,7 +232,7 @@ async function deleteVariable(data: IResource) {
}
function goToUpgrade() {
void uiStore.goToUpgrade('variables', 'upgrade-variables');
void pageRedirectionHelper.goToUpgrade('variables', 'upgrade-variables');
}
function displayName(resource: IResource) {