@@ -83,7 +83,7 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
83
83
workspaceUpdatePolicy ( workspace , canChangeVersions ) === "always" &&
84
84
workspace . outdated ;
85
85
86
- const tooltipText = getTooltipText ( workspace , mustUpdate ) ;
86
+ const tooltipText = getTooltipText ( workspace , mustUpdate , canChangeVersions ) ;
87
87
const canBeUpdated = workspace . outdated && canAcceptJobs ;
88
88
89
89
// A mapping of button type to the corresponding React component
@@ -202,17 +202,25 @@ export const WorkspaceActions: FC<WorkspaceActionsProps> = ({
202
202
) ;
203
203
} ;
204
204
205
- function getTooltipText ( workspace :Workspace , disabled :boolean ) :string {
206
- if ( ! disabled ) {
205
+ function getTooltipText (
206
+ workspace :Workspace ,
207
+ mustUpdate :boolean ,
208
+ canChangeVersions :boolean ,
209
+ ) :string {
210
+ if ( ! mustUpdate && ! canChangeVersions ) {
207
211
return "" ;
208
212
}
209
213
214
+ if ( ! mustUpdate && canChangeVersions ) {
215
+ return "This template requires automatic updates on workspace startup, but template administrators can ignore this policy." ;
216
+ }
217
+
210
218
if ( workspace . template_require_active_version ) {
211
- return "This template requires automatic updates" ;
219
+ return "This template requires automatic updates on workspace startup. Contact your administrator if you want to preserve the template version. " ;
212
220
}
213
221
214
222
if ( workspace . automatic_updates === "always" ) {
215
- return "You have enabledautomatic updates for this workspace" ;
223
+ return "Automatic updates are enabled for this workspace. Modify the update policy in workspace settings if you want to preserve the template version. " ;
216
224
}
217
225
218
226
return "" ;