mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 10:32:17 -08:00
fix(editor): Update SSO upgrade link (#6016)
fix(editor): update SSO upgrade link
This commit is contained in:
parent
0e0a064fa7
commit
953198e092
|
@ -4,7 +4,7 @@ import { Notification } from 'element-ui';
|
|||
import { useSSOStore } from '@/stores/sso';
|
||||
import { useUsageStore } from '@/stores/usage';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
import { BaseTextKey, i18n as locale } from '@/plugins/i18n';
|
||||
import { i18n as locale } from '@/plugins/i18n';
|
||||
import CopyInput from '@/components/CopyInput.vue';
|
||||
|
||||
const ssoStore = useSSOStore();
|
||||
|
@ -56,16 +56,7 @@ const onTest = async () => {
|
|||
};
|
||||
|
||||
const goToUpgrade = () => {
|
||||
const linkUrlTranslationKey = uiStore.contextBasedTranslationKeys.upgradeLinkUrl as BaseTextKey;
|
||||
let linkUrl = locale.baseText(linkUrlTranslationKey);
|
||||
|
||||
if (linkUrlTranslationKey.endsWith('.upgradeLinkUrl')) {
|
||||
linkUrl = `${usageStore.viewPlansUrl}&source=sso`;
|
||||
} else if (linkUrlTranslationKey.endsWith('.desktop')) {
|
||||
linkUrl = `${linkUrl}&utm_campaign=upgrade-sso`;
|
||||
}
|
||||
|
||||
window.open(linkUrl, '_blank');
|
||||
uiStore.goToUpgrade('sso', 'upgrade-sso`');
|
||||
};
|
||||
|
||||
onBeforeMount(async () => {
|
||||
|
|
Loading…
Reference in a new issue