mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00: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:
@@ -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('');
|
||||
|
||||
Reference in New Issue
Block a user