mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: update workspace form fields when switching templates (#1761)
resolves #1716
This commit is contained in:
Vendored
+1
@@ -60,6 +60,7 @@
|
||||
"TCGETS",
|
||||
"tcpip",
|
||||
"TCSETS",
|
||||
"templateversions",
|
||||
"testid",
|
||||
"tfexec",
|
||||
"tfjson",
|
||||
|
||||
@@ -45,6 +45,12 @@ export const createWorkspaceMachine = createMachine(
|
||||
},
|
||||
},
|
||||
tsTypes: {} as import("./createWorkspaceXService.typegen").Typegen0,
|
||||
on: {
|
||||
SELECT_TEMPLATE: {
|
||||
actions: ["assignSelectedTemplate"],
|
||||
target: "gettingTemplateSchema",
|
||||
},
|
||||
},
|
||||
states: {
|
||||
gettingTemplates: {
|
||||
invoke: {
|
||||
|
||||
Reference in New Issue
Block a user