Fixed launch wizard preview not showing plans after connecting Stripe

refs https://github.com/TryGhost/Team/issues/460

- after connecting Stripe we were showing the "set pricing" step with the portal preview but the portal preview did not reflect Stripe having been connected
- the problem arose because we were triggering the portal preview without refreshing the preview in the iframe, meaning the portal preview only had access to the "before stripe" state
- forcing a refresh after successfully connecting Stripe ensures portal is loaded with all the necessary state
This commit is contained in:
Kevin Ansfield 2021-02-09 15:53:26 +00:00
parent 916c12546f
commit 054b82f822

View File

@ -137,6 +137,7 @@ export default class GhLaunchWizardConnectStripeComponent extends Component {
@task
*pauseAndContinueTask() {
this.args.refreshPreview();
yield timeout(500);
this.args.nextStep();
}