We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8bd12 commit ed6399aCopy full SHA for ed6399a
site/src/pages/WorkspacePage/WorkspaceActions/Buttons.tsx
@@ -5,6 +5,7 @@ import {
5
BanIcon,
6
CirclePlayIcon,
7
CircleStopIcon,
8
+ CloudIcon,
9
PowerIcon,
10
RotateCcwIcon,
11
StarIcon,
@@ -43,8 +44,14 @@ export const UpdateButton: FC<ActionButtonProps> = ({
43
44
disabled={loading}
45
onClick={() => handleAction()}
46
>
- {isRunning ? <RotateCcwIcon /> : <CirclePlayIcon />}
47
- {loading ? <>Updating…</> : <>Update…</>}
+ {requireActiveVersion ? <CirclePlayIcon /> : <CloudIcon />}
48
+ {loading ? (
49
+ <>Updating…</>
50
+ ) : isRunning ? (
51
+ <>Update and restart…</>
52
+ ) : (
53
+ <>Update and start…</>
54
+ )}
55
</TopbarButton>
56
</Tooltip>
57
);
0 commit comments