mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
studio init action for video tab
This commit is contained in:
committed by
Mary Hipp Rogers
parent
ec8df163d1
commit
2463aeb84a
@@ -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');
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user