0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Removed portal-action param in favor of action

no issue

With Ghost 4.0, we want to keep a single universal action source so the Ghost core doesn't have to know about portal specific actions
This commit is contained in:
Rish 2021-01-22 17:33:34 +05:30
parent 9228651786
commit b5a7c92327
2 changed files with 2 additions and 2 deletions

View file

@ -188,7 +188,7 @@ export default class Notification extends React.Component {
const type = this.state.type;
const deleteParams = [];
if (['signin', 'signup'].includes(type)) {
deleteParams.push('portal-action', 'success');
deleteParams.push('action', 'success');
} else if (['stripe:checkout'].includes(type)) {
deleteParams.push('stripe');
}

View file

@ -51,7 +51,7 @@ export default function NotificationParser({billingOnly = false} = {}) {
return null;
}
const qsParams = new URLSearchParams(qs);
const action = qsParams.get('portal-action');
const action = qsParams.get('action');
const successStatus = qsParams.get('success');
const stripeStatus = qsParams.get('stripe');
let notificationData = null;