fix: only render tooltip when require_active_version enabled (#13484)

This commit is contained in:
Jon Ayers
2024-06-06 02:52:49 +00:00
committed by GitHub
parent f1b42a15fa
commit 7995d7c3d6
@@ -244,7 +244,11 @@ function getTooltipText(
return "";
}
if (!mustUpdate && canChangeVersions) {
if (
!mustUpdate &&
canChangeVersions &&
workspace.template_require_active_version
) {
return "This template requires automatic updates on workspace startup, but template administrators can ignore this policy.";
}