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

@@ -15,6 +15,7 @@ import { useSettingsStore } from '@/stores/settings.store';
import { useUIStore } from '@/stores/ui.store';
import { createFormEventBus, createEventBus } from 'n8n-design-system/utils';
import { useClipboard } from '@/composables/useClipboard';
import { usePageRedirectionHelper } from '@/composables/usePageRedirectionHelper';
const NAME_EMAIL_FORMAT_REGEX = /^.* <(.*)>$/;
@@ -43,6 +44,7 @@ export default defineComponent({
return {
clipboard,
...useToast(),
...usePageRedirectionHelper(),
};
},
data() {
@@ -277,7 +279,7 @@ export default defineComponent({
}
},
goToUpgradeAdvancedPermissions() {
void this.uiStore.goToUpgrade('advanced-permissions', 'upgrade-advanced-permissions');
void this.goToUpgrade('advanced-permissions', 'upgrade-advanced-permissions');
},
},
});