diff --git a/apps/x/apps/renderer/src/components/sidebar-content.tsx b/apps/x/apps/renderer/src/components/sidebar-content.tsx index f5d98915..6a4bec64 100644 --- a/apps/x/apps/renderer/src/components/sidebar-content.tsx +++ b/apps/x/apps/renderer/src/components/sidebar-content.tsx @@ -8,6 +8,7 @@ import { ChevronsDownUp, ChevronsUpDown, Copy, + ExternalLink, FilePlus, FolderPlus, AlertTriangle, @@ -983,6 +984,15 @@ function Tree({ )} + {!isDir && actions.onOpenInNewTab && ( + <> + actions.onOpenInNewTab!(item.path)}> + + Open in new tab + + + + )} Copy Path @@ -1172,9 +1182,9 @@ function TasksSection({ {runs.map((run) => ( - - - + + + { @@ -1197,19 +1207,29 @@ function TasksSection({ ) : null} - - - setPendingDeleteRunId(run.id)} - > - - Delete + + + + {actions?.onOpenInNewTab && ( + actions.onOpenInNewTab!(run.id)}> + + Open in new tab - - - + )} + {!processingRunIds?.has(run.id) && ( + <> + {actions?.onOpenInNewTab && } + setPendingDeleteRunId(run.id)} + > + + Delete + + + )} + + ))}