Skip to content

Commit 3fbfb53

Browse files
sreyacoadler
authored andcommitted
fix: only render tooltip when require_active_version enabled (coder#13484)
(cherry picked from commit 7995d7c)
1 parent 5e69a9d commit 3fbfb53

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ function getTooltipText(
244244
return "";
245245
}
246246

247-
if (!mustUpdate && canChangeVersions) {
247+
if (
248+
!mustUpdate &&
249+
canChangeVersions &&
250+
workspace.template_require_active_version
251+
) {
248252
return "This template requires automatic updates on workspace startup, but template administrators can ignore this policy.";
249253
}
250254

0 commit comments

Comments
 (0)