Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteca4407

Browse files
committed
fix: WorkspacesTable: update icons to differentiate between updateAndStart and start
1 parente5eb2a8 commiteca4407

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

‎site/src/pages/WorkspacesPage/WorkspacesTable.tsx

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ import { ExternalLinkIcon, FileIcon, StarIcon } from "lucide-react";
4848
import{EllipsisVertical}from"lucide-react";
4949
import{
5050
BanIcon,
51+
CirclePlayIcon,
52+
CloudIcon,
5153
PlayIcon,
5254
RefreshCcwIcon,
5355
SquareIcon,
@@ -558,7 +560,46 @@ const WorkspaceActionsCell: FC<WorkspaceActionsCellProps> = ({
558560
isLoading={workspaceUpdate.isUpdating}
559561
label="Update and start workspace"
560562
>
561-
<PlayIcon/>
563+
<CloudIcon/>
564+
</PrimaryAction>
565+
<WorkspaceUpdateDialogs{...workspaceUpdate.dialogs}/>
566+
</>
567+
)}
568+
569+
{abilities.actions.includes("updateAndStartRequireActiveVersion")&&(
570+
<>
571+
<PrimaryAction
572+
onClick={workspaceUpdate.update}
573+
isLoading={workspaceUpdate.isUpdating}
574+
label="This template requires automatic updates on workspace startup. Contact your administrator if you want to preserve the template version."
575+
>
576+
<CirclePlayIcon/>
577+
</PrimaryAction>
578+
<WorkspaceUpdateDialogs{...workspaceUpdate.dialogs}/>
579+
</>
580+
)}
581+
582+
{abilities.actions.includes("updateAndRestart")&&(
583+
<>
584+
<PrimaryAction
585+
onClick={workspaceUpdate.update}
586+
isLoading={workspaceUpdate.isUpdating}
587+
label="Update and restart workspace"
588+
>
589+
<CloudIcon/>
590+
</PrimaryAction>
591+
<WorkspaceUpdateDialogs{...workspaceUpdate.dialogs}/>
592+
</>
593+
)}
594+
595+
{abilities.actions.includes("updateAndRestartRequireActiveVersion")&&(
596+
<>
597+
<PrimaryAction
598+
onClick={workspaceUpdate.update}
599+
isLoading={workspaceUpdate.isUpdating}
600+
label="This template requires automatic updates on workspace restart. Contact your administrator if you want to preserve the template version."
601+
>
602+
<CirclePlayIcon/>
562603
</PrimaryAction>
563604
<WorkspaceUpdateDialogs{...workspaceUpdate.dialogs}/>
564605
</>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp