indicate when cards are sent and player has to wait

This commit is contained in:
Adam 2024-08-30 00:16:55 -04:00
parent aee5bcdefb
commit a710133225

View file

@ -111,9 +111,16 @@ pub fn PlayingView() -> impl IntoView {
// Submit button
<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
</button>
</Show>
</div>
// Player hand