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

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