mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix: only render tooltip when require_active_version enabled (#13484)
This commit is contained in:
@@ -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.";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user