Skip to content

Commit 33783a3

Browse files
committed
Fix onClick compile error in ServiceInfoAction
1 parent ae71197 commit 33783a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

service/src/main/kotlin/app/cash/backfila/ui/pages/ServiceInfoAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class ServiceInfoAction @Inject constructor(
152152
method = FormMethod.post
153153
button(classes = "inline-flex items-center px-4 py-2 border border-red-300 text-sm font-medium rounded-md text-red-700 bg-white hover:bg-red-50") {
154154
type = ButtonType.submit
155-
onClick = "return confirm('Are you sure you want to delete the $service ($variant) service variant? This cannot be undone.')"
155+
attributes["onclick"] = "return confirm('Are you sure you want to delete the $service ($variant) service variant? This cannot be undone.')"
156156
+"Delete Variant"
157157
}
158158
}

0 commit comments

Comments
 (0)