Skip to content

Commit

Permalink
Skip the launchpad for Videomaker trial, head straight to the site ed…
Browse files Browse the repository at this point in the history
…itor. (#83126)
  • Loading branch information
roundhill authored and pull[bot] committed Dec 12, 2023
1 parent 6fcc94b commit 8875156
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions client/landing/stepper/declarative-flow/videopress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,21 @@ const videopress: Flow = {

setSelectedSite( newSite.blogid );
setIntentOnSite( newSite.site_slug, VIDEOPRESS_FLOW );

if ( config.isEnabled( 'videomaker-trial' ) ) {
saveSiteSettings( newSite.blogid, {
launchpad_screen: 'off',
blogdescription: siteDescription,
} );
clearOnboardingSiteOptions();
return window.location.assign( `/site-editor/${ newSite.site_slug }` );
}

saveSiteSettings( newSite.blogid, {
launchpad_screen: 'full',
blogdescription: siteDescription,
} );

if ( config.isEnabled( 'videomaker-trial' ) ) {
// Videomaker trial doesn't require payment, let's go to the next step
window.location.replace(
`/setup/videopress/launchpad?siteSlug=${ newSite.site_slug }&siteId=${ newSite.blogid }`
);
return;
}

let planObject = supportedPlans.find( ( plan ) => 'premium' === plan.periodAgnosticSlug );
if ( ! planObject ) {
planObject = supportedPlans.find( ( plan ) => 'business' === plan.periodAgnosticSlug );
Expand Down

0 comments on commit 8875156

Please sign in to comment.