-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link directly to the manage page for this plan. #579
Link directly to the manage page for this plan. #579
Conversation
In my case, I had a |
@Tug There is an api change that needs to be applied. |
I see! I wasn't sure about the whole |
@Tug No worries, Thanks for taking the time to review :) |
Let's also update the "Payment settings" link for domains. I thought there were more instances of it but that's the only one I could find. |
We should also update these links: |
@mikeshelton1503 @fabianapsimoes: Do we want to keep |
@gziolo no, we don't need that anymore now that |
@@ -64,7 +64,7 @@ var NAV_ITEMS = { | |||
}, | |||
|
|||
'My Upgrades': { | |||
paths: [ '/my-upgrades' ], | |||
paths: [ '/purchases' ], | |||
label: i18n.translate( 'My Upgrades' ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should say "Manage Purchases"
paths: [ '/my-upgrades' ], | ||
label: i18n.translate( 'My Upgrades' ), | ||
paths: [ '/purchases' ], | ||
label: i18n.translate( 'Manage Purchases' ), | ||
external: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/purchases
is an internal link, so we should try and open this in the window for the same reason that we updated the target="_blank"
links.
This will require updating some logic in UpgradesNavigation
, because we currently assume that internal links follow the pattern path + siteSlug
.
…ey are in the same app
8c71bd5
to
01604bd
Compare
QA. 👍 |
Code LGTM. |
…e-purchase Link directly to the manage page for this plan.
Finally \o/ |
Fixes #543
Testing
D593-code
git checkout update/Link-directly-to-manage-purchase
/purchases/
page for this planBilling History
and verify that theManage Purchases
link takes you topurchases
Manage Purchase
links for upcoming charges takes you to the correct purchase.Also test:
Payment Settings
link on http://calypso.localhost:3000/domains/manage/:site/edit/:domain