mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-23 03:07:05 +00:00
feat: hyperlinked on "Start application" actionto switch to preview in workbench
This commit is contained in:
parent
719384cfbd
commit
d4c4fe1e5c
@ -178,9 +178,15 @@ const ActionList = memo(({ actions }: ActionListProps) => {
|
|||||||
<span className="flex-1">Run command</span>
|
<span className="flex-1">Run command</span>
|
||||||
</div>
|
</div>
|
||||||
) : type === 'start' ? (
|
) : 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>
|
<span className="flex-1">Start Application</span>
|
||||||
</div>
|
</a>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
{(type === 'shell' || type === 'start') && (
|
{(type === 'shell' || type === 'start') && (
|
||||||
|
Loading…
Reference in New Issue
Block a user