studio init action for video tab

This commit is contained in:
Mary Hipp
2025-08-27 12:08:11 -04:00
committed by Mary Hipp Rogers
parent ec8df163d1
commit 2463aeb84a
2 changed files with 6 additions and 6 deletions

View File

@@ -42,6 +42,7 @@ type StudioDestinationAction = _StudioInitAction<
| 'canvas'
| 'workflows'
| 'upscaling'
| 'video'
| 'viewAllWorkflows'
| 'viewAllWorkflowsRecommended'
| 'viewAllStylePresets';
@@ -177,6 +178,10 @@ export const useStudioInitAction = (action?: StudioInitAction) => {
// Go to the upscaling tab
navigationApi.switchToTab('upscaling');
break;
case 'video':
// Go to the video tab
await navigationApi.focusPanel('video', LAUNCHPAD_PANEL_ID);
break;
case 'viewAllWorkflows':
// Go to the workflows tab and open the workflow library modal
navigationApi.switchToTab('workflows');

View File

@@ -17,12 +17,7 @@ export const VideoLaunchpadPanel = memo(() => {
const videoUpsellComponent = useStore($videoUpsellComponent);
if (!isVideoEnabled) {
return (
<LaunchpadContainer heading="">
{videoUpsellComponent}
</LaunchpadContainer>
);
return <LaunchpadContainer heading="">{videoUpsellComponent}</LaunchpadContainer>;
}
return (