feat: hyperlinked on "Start application" actionto switch to preview in workbench

This commit is contained in:
Anirban Kar 2024-11-09 13:43:19 +05:30
parent 719384cfbd
commit d4c4fe1e5c

View File

@ -178,9 +178,15 @@ const ActionList = memo(({ actions }: ActionListProps) => {
<span className="flex-1">Run command</span>
</div>
) : type === 'start' ? (
<div className="flex items-center w-full min-h-[28px]">
<a
onClick={(e) => {
e.preventDefault();
workbenchStore.currentView.set('preview');
}}
className="flex items-center w-full min-h-[28px]"
>
<span className="flex-1">Start Application</span>
</div>
</a>
) : null}
</div>
{(type === 'shell' || type === 'start') && (