mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Update template page automatically (#3962)
* Update template page automatically * Remove misleading test
This commit is contained in:
@@ -162,8 +162,20 @@ export const templateMachine =
|
||||
target: "confirmingDelete",
|
||||
},
|
||||
},
|
||||
onDone: {
|
||||
target: "loaded",
|
||||
initial: "refreshingTemplate",
|
||||
states: {
|
||||
refreshingTemplate: {
|
||||
invoke: {
|
||||
id: "refreshTemplate",
|
||||
src: "getTemplate",
|
||||
onDone: { target: "waiting", actions: "assignTemplate" },
|
||||
},
|
||||
},
|
||||
waiting: {
|
||||
after: {
|
||||
5000: "refreshingTemplate",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
confirmingDelete: {
|
||||
|
||||
Reference in New Issue
Block a user