Skip to content

Commit 2ce0122

Browse files
Mary HippMary Hipp
authored andcommitted
studio init action for video tab
1 parent cb0c8ee commit 2ce0122

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

invokeai/frontend/web/src/app/hooks/useStudioInitAction.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type StudioDestinationAction = _StudioInitAction<
4242
| 'canvas'
4343
| 'workflows'
4444
| 'upscaling'
45+
| 'video'
4546
| 'viewAllWorkflows'
4647
| 'viewAllWorkflowsRecommended'
4748
| 'viewAllStylePresets';
@@ -177,6 +178,10 @@ export const useStudioInitAction = (action?: StudioInitAction) => {
177178
// Go to the upscaling tab
178179
navigationApi.switchToTab('upscaling');
179180
break;
181+
case 'video':
182+
// Go to the video tab
183+
await navigationApi.focusPanel('video', LAUNCHPAD_PANEL_ID);
184+
break;
180185
case 'viewAllWorkflows':
181186
// Go to the workflows tab and open the workflow library modal
182187
navigationApi.switchToTab('workflows');

invokeai/frontend/web/src/features/ui/layouts/VideoLaunchpadPanel.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ export const VideoLaunchpadPanel = memo(() => {
1717
const videoUpsellComponent = useStore($videoUpsellComponent);
1818

1919
if (!isVideoEnabled) {
20-
return (
21-
<LaunchpadContainer heading="">
22-
{videoUpsellComponent}
23-
24-
</LaunchpadContainer>
25-
);
20+
return <LaunchpadContainer heading="">{videoUpsellComponent}</LaunchpadContainer>;
2621
}
2722

2823
return (

0 commit comments

Comments
 (0)