single game fix
This commit is contained in:
parent
09bf741997
commit
f3020b7cb0
6 changed files with 195 additions and 128 deletions
|
|
@ -27,6 +27,7 @@ pub fn click_cell(
|
|||
pub fn click_cell_pair(
|
||||
tag: Option(String),
|
||||
pair: Option(#(String, String)),
|
||||
display_value: Bool,
|
||||
on_click: fn(Option(#(String, String))) -> msg,
|
||||
) -> Element(msg) {
|
||||
let value = case pair {
|
||||
|
|
@ -47,7 +48,10 @@ pub fn click_cell_pair(
|
|||
},
|
||||
),
|
||||
]),
|
||||
html.text(value),
|
||||
case display_value {
|
||||
True -> html.text(value)
|
||||
False -> element.none()
|
||||
},
|
||||
]),
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue