Skip to content

Commit 0175889

Browse files
committed
update connecitons victory condition
1 parent e5fe006 commit 0175889

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

testdata/connections/main.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ module "checker" {
5656

5757
data "coder_parameter" display {
5858
name = "display"
59-
display_name = local.solved ? "Workspace name" : join(", ", local.available_words)
60-
description = local.solved ? "Congrats, you won! What is your workspace name?" : "Remaining words"
61-
type = "string"
62-
default = local.solved ? "" : "Keep guessing!"
59+
display_name = local.solved ? "Congrats, you won! You may now hit the switch!" : join(", ", local.available_words)
60+
description = local.solved ? "Hitting the switch enables workspace creation." : "Remaining words are above, you cannot use this switch until you solve the puzzle!"
61+
type = "bool"
62+
form_type = "switch"
63+
default = local.solved ? false : true
64+
# default = local.solved ? "" : "Keep guessing!"
6365

6466
form_type_metadata = jsonencode({
6567
disabled = !local.solved

0 commit comments

Comments
 (0)