mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-25 19:41:14 -08:00
feat: Add source to all View Plans links (no-changelog) (#5097)
feat: Add source to all View Plans links
This commit is contained in:
parent
a43e3e4112
commit
a79c253345
|
@ -181,7 +181,7 @@ export default mixins(showMessage).extend({
|
|||
goToUpgrade() {
|
||||
let linkUrl = this.$locale.baseText(this.uiStore.contextBasedTranslationKeys.upgradeLinkUrl);
|
||||
if (linkUrl.includes('subscription')) {
|
||||
linkUrl = this.usageStore.viewPlansUrl;
|
||||
linkUrl = `${this.usageStore.viewPlansUrl}&source=credential_sharing`;
|
||||
}
|
||||
|
||||
window.open(linkUrl, '_blank');
|
||||
|
|
|
@ -524,7 +524,7 @@ export default mixins(workflowHelpers, titleChange).extend({
|
|||
goToUpgrade() {
|
||||
let linkUrl = this.$locale.baseText(this.contextBasedTranslationKeys.upgradeLinkUrl);
|
||||
if (linkUrl.includes('subscription')) {
|
||||
linkUrl = this.usageStore.viewPlansUrl;
|
||||
linkUrl = `${this.usageStore.viewPlansUrl}&source=workflow_sharing`;
|
||||
}
|
||||
|
||||
window.open(linkUrl, '_blank');
|
||||
|
|
|
@ -439,7 +439,7 @@ export default mixins(showMessage).extend({
|
|||
goToUpgrade() {
|
||||
let linkUrl = this.$locale.baseText(this.uiStore.contextBasedTranslationKeys.upgradeLinkUrl);
|
||||
if (linkUrl.includes('subscription')) {
|
||||
linkUrl = this.usageStore.viewPlansUrl;
|
||||
linkUrl = `${this.usageStore.viewPlansUrl}&source=workflow_sharing`;
|
||||
}
|
||||
|
||||
window.open(linkUrl, '_blank');
|
||||
|
|
|
@ -14,7 +14,9 @@ const router = useRouter();
|
|||
const queryParamCallback = ref<string>(
|
||||
`callback=${encodeURIComponent(`${window.location.origin}${window.location.pathname}`)}`,
|
||||
);
|
||||
const viewPlansUrl = computed(() => `${usageStore.viewPlansUrl}&${queryParamCallback.value}`);
|
||||
const viewPlansUrl = computed(
|
||||
() => `${usageStore.viewPlansUrl}&${queryParamCallback.value}&source=usage_page`,
|
||||
);
|
||||
const managePlanUrl = computed(() => `${usageStore.managePlanUrl}&${queryParamCallback.value}`);
|
||||
const activationKeyModal = ref(false);
|
||||
const activationKey = ref('');
|
||||
|
|
Loading…
Reference in a new issue