Skip to content

Commit ed6399a

Browse files
committed
adjust icons
1 parent da8bd12 commit ed6399a

File tree

1 file changed

+9
-2
lines changed
  • site/src/pages/WorkspacePage/WorkspaceActions

1 file changed

+9
-2
lines changed

site/src/pages/WorkspacePage/WorkspaceActions/Buttons.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
BanIcon,
66
CirclePlayIcon,
77
CircleStopIcon,
8+
CloudIcon,
89
PowerIcon,
910
RotateCcwIcon,
1011
StarIcon,
@@ -43,8 +44,14 @@ export const UpdateButton: FC<ActionButtonProps> = ({
4344
disabled={loading}
4445
onClick={() => handleAction()}
4546
>
46-
{isRunning ? <RotateCcwIcon /> : <CirclePlayIcon />}
47-
{loading ? <>Updating&hellip;</> : <>Update&hellip;</>}
47+
{requireActiveVersion ? <CirclePlayIcon /> : <CloudIcon />}
48+
{loading ? (
49+
<>Updating&hellip;</>
50+
) : isRunning ? (
51+
<>Update and restart&hellip;</>
52+
) : (
53+
<>Update and start&hellip;</>
54+
)}
4855
</TopbarButton>
4956
</Tooltip>
5057
);

0 commit comments

Comments
 (0)