indicate when cards are sent and player has to wait
This commit is contained in:
parent
aee5bcdefb
commit
a710133225
1 changed files with 10 additions and 3 deletions
|
@ -111,9 +111,16 @@ pub fn PlayingView() -> impl IntoView {
|
||||||
|
|
||||||
// Submit button
|
// Submit button
|
||||||
<div class="w-full inline-flex flex-wrap justify-center">
|
<div class="w-full inline-flex flex-wrap justify-center">
|
||||||
<button type="button" on:click=submit_move>
|
<Show
|
||||||
|
when=move || !submitted()
|
||||||
|
fallback=move || {
|
||||||
|
view! { <p>"Card(s) submitted. Waiting for other players..."</p> }
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<button type="button" on:click=submit_move.clone()>
|
||||||
Submit
|
Submit
|
||||||
</button>
|
</button>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
// Player hand
|
// Player hand
|
||||||
|
|
Loading…
Add table
Reference in a new issue