mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
feat: add view workspace button in task page (#18105)
<img width="1613" alt="Screenshot 2025-05-29 at 12 57 41" src="https://github.com/user-attachments/assets/7ae199c2-7e36-47d2-84cc-d0ae820ff372" />
This commit is contained in:
@@ -227,7 +227,7 @@ const TaskPage = () => {
|
||||
</Helmet>
|
||||
|
||||
<section className="h-full flex flex-col">
|
||||
<header className="h-20 border-0 border-b border-solid border-border px-4 flex items-center shrink-0">
|
||||
<header className="h-20 border-0 border-b border-solid border-border px-4 flex items-center shrink-0 justify-between">
|
||||
<div className="flex items-center gap-4">
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
@@ -252,6 +252,14 @@ const TaskPage = () => {
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Button variant="outline" asChild>
|
||||
<RouterLink
|
||||
to={`/@${task.workspace.owner_username}/${task.workspace.name}`}
|
||||
>
|
||||
View workspace
|
||||
</RouterLink>
|
||||
</Button>
|
||||
</header>
|
||||
|
||||
{content}
|
||||
|
||||
Reference in New Issue
Block a user