feat: implement suggesting a fairy despawned
This commit is contained in:
parent
f9527c330c
commit
5ed1cc91ae
4 changed files with 39 additions and 10 deletions
|
@ -72,10 +72,24 @@
|
|||
hx-select="#fairies"
|
||||
>
|
||||
remove</div>
|
||||
<% unless instance.fairies[idx].is_despawned %>
|
||||
<div
|
||||
class="copyable action no_pwd"
|
||||
hx-post="/fairy/despawn?instance=<%= instance.public_id %>&location=<%= instance.fairies[idx].location %>"
|
||||
hx-swap="outerHTML"
|
||||
hx-target="#fairies"
|
||||
hx-select="#fairies"
|
||||
>
|
||||
gone?
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% if instance.fairies[idx].is_despawned %>
|
||||
<span class="despawn-note">potentially despawned!</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<div class="note">Click on a black dot to mark another Elemental.</div>
|
||||
<div class="needs_pwd note">Click on a black dot to mark another Elemental.</div>
|
||||
<div class="note">
|
||||
<div
|
||||
class="copyable"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue