mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add frontend support for mandating active template version (#10338)
This commit is contained in:
Generated
+3
@@ -11125,6 +11125,9 @@ const docTemplate = `{
|
||||
"template_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"template_require_active_version": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ttl_ms": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
Generated
+3
@@ -10091,6 +10091,9 @@
|
||||
"template_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"template_require_active_version": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ttl_ms": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
@@ -1338,6 +1338,7 @@ func convertWorkspace(
|
||||
TemplateDisplayName: template.DisplayName,
|
||||
TemplateAllowUserCancelWorkspaceJobs: template.AllowUserCancelWorkspaceJobs,
|
||||
TemplateActiveVersionID: template.ActiveVersionID,
|
||||
TemplateRequireActiveVersion: template.RequireActiveVersion,
|
||||
Outdated: workspaceBuild.TemplateVersionID.String() != template.ActiveVersionID.String(),
|
||||
Name: workspace.Name,
|
||||
AutostartSchedule: autostartSchedule,
|
||||
|
||||
Reference in New Issue
Block a user