feat: Add source to all View Plans links (no-changelog) (#5097)

feat: Add source to all View Plans links
This commit is contained in:
Alex Grozav
2023-01-09 14:57:51 +02:00
committed by GitHub
parent a43e3e4112
commit a79c253345
4 changed files with 6 additions and 4 deletions

View File

@@ -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('');