File tree 1 file changed +6
-6
lines changed
site/src/pages/WorkspacePage/WorkspaceActions 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,11 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
77
77
canRetryDebug ,
78
78
) ;
79
79
80
- const disabled =
80
+ const mustUpdate =
81
81
workspaceUpdatePolicy ( workspace , canChangeVersions ) === "always" &&
82
82
workspace . outdated ;
83
83
84
- const tooltipText = getTooltipText ( workspace , disabled ) ;
84
+ const tooltipText = getTooltipText ( workspace , mustUpdate ) ;
85
85
const canBeUpdated = workspace . outdated && canAcceptJobs ;
86
86
87
87
// A mapping of button type to the corresponding React component
@@ -92,7 +92,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
92
92
< StartButton
93
93
workspace = { workspace }
94
94
handleAction = { handleStart }
95
- disabled = { disabled }
95
+ disabled = { mustUpdate }
96
96
tooltipText = { tooltipText }
97
97
/>
98
98
) ,
@@ -101,7 +101,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
101
101
loading
102
102
workspace = { workspace }
103
103
handleAction = { handleStart }
104
- disabled = { disabled }
104
+ disabled = { mustUpdate }
105
105
tooltipText = { tooltipText }
106
106
/>
107
107
) ,
@@ -111,7 +111,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
111
111
< RestartButton
112
112
workspace = { workspace }
113
113
handleAction = { handleRestart }
114
- disabled = { disabled }
114
+ disabled = { mustUpdate }
115
115
tooltipText = { tooltipText }
116
116
/>
117
117
) ,
@@ -120,7 +120,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
120
120
loading
121
121
workspace = { workspace }
122
122
handleAction = { handleRestart }
123
- disabled = { disabled }
123
+ disabled = { mustUpdate }
124
124
tooltipText = { tooltipText }
125
125
/>
126
126
) ,
You can’t perform that action at this time.
0 commit comments