Enha: avoid replacing div that connects to sse
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<h2 class="text-xl mb-4">Join Blue Team</h2>
|
||||
<form hx-post="/join-team" hx-target="#ancestor">
|
||||
<form hx-post="/join-team" hx-target="#main-content">
|
||||
<input type="hidden" name="team" value="blue">
|
||||
<div class="mb-1">
|
||||
{{if and (eq .State.Role "guesser") (eq .State.Team "blue")}}
|
||||
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<h2 class="text-xl mb-4">Join Red Team</h2>
|
||||
<form hx-post="/join-team" hx-target="#ancestor">
|
||||
<form hx-post="/join-team" hx-target="#main-content">
|
||||
<input type="hidden" name="team" value="red">
|
||||
<div class="mb-1">
|
||||
{{if and (eq .State.Role "guesser") (eq .State.Team "red")}}
|
||||
|
Reference in New Issue
Block a user