mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 16:38:22 +03:00
Redirected member to home after plan update
no issue - Takes member to home page popup on plan update - Fetches new member session data via API to show updated plan
This commit is contained in:
parent
dd2ad02e68
commit
97319dee7c
@ -176,6 +176,12 @@ export default class ParentContainer extends React.Component {
|
||||
await this.GhostApi.member.updateSubscription({
|
||||
planName: plan, subscriptionId
|
||||
});
|
||||
const member = await this.GhostApi.member.sessionData();
|
||||
this.setState({
|
||||
action: 'updatePlan:success',
|
||||
page: 'accountHome',
|
||||
member: member
|
||||
});
|
||||
} else if (action === 'editBilling') {
|
||||
await this.GhostApi.member.editBilling();
|
||||
} else if (action === 'updateMember') {
|
||||
|
Loading…
Reference in New Issue
Block a user