mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed paid signup notification message
refs 579b34434f
As part of the work of automatically logging members in after payment, we added a new action type for signup - `signup-paid` - which allows custom message for a member that is already signed up and doesn't need to confirm their subscription. The new action - `signup-paid` - wasn't added to Portal notification handler which then fallbacks to showing just `Success` as the message. This change -
- handles new `signup-paid` action type allowing Portal to show proper success message
This commit is contained in:
parent
7e4e1bcfe2
commit
2377cb630f
1 changed files with 13 additions and 1 deletions
|
@ -49,6 +49,12 @@ const NotificationText = ({type, status, context}) => {
|
|||
You've successfully subscribed to <br /><strong>{context.site.title}</strong>
|
||||
</p>
|
||||
);
|
||||
} else if (type === 'signup-paid' && status === 'success') {
|
||||
return (
|
||||
<p>
|
||||
You've successfully subscribed to <br /><strong>{context.site.title}</strong>
|
||||
</p>
|
||||
);
|
||||
} else if (type === 'updateEmail' && status === 'success') {
|
||||
return (
|
||||
<p>
|
||||
|
@ -67,6 +73,12 @@ const NotificationText = ({type, status, context}) => {
|
|||
Signup error: Invalid link <br /><a href={singupPortalLink} target="_parent">Click here to retry</a>
|
||||
</p>
|
||||
);
|
||||
} else if (type === 'signup-paid' && status === 'error') {
|
||||
return (
|
||||
<p>
|
||||
Signup error: Invalid link <br /><a href={singupPortalLink} target="_parent">Click here to retry</a>
|
||||
</p>
|
||||
);
|
||||
} else if (type === 'stripe:checkout' && status === 'success') {
|
||||
if (context.member) {
|
||||
return (
|
||||
|
@ -228,4 +240,4 @@ export default class Notification extends React.Component {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue