Skip to content

Commit

Permalink
Add the Review Site task completion logic (#95144)
Browse files Browse the repository at this point in the history
  • Loading branch information
valterlorran authored Oct 7, 2024
1 parent 92b5d87 commit 8c8b895
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/launchpad/src/setup-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ export const setUpActionsForTasks = ( {
useCalypsoPath = false;
break;

case 'review_site':
action = () => {
// redirects to the site slug home page in a new tab
window.open( `https://${ siteSlug }`, '_blank' );
updateLaunchpadSettings( siteSlug, {
checklist_statuses: { [ task.id ]: true },
} );
};
useCalypsoPath = false;
break;

default:
logMissingCalypsoPath = true;
useCalypsoPath = false;
Expand Down

0 comments on commit 8c8b895

Please sign in to comment.