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

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