Enable new actions menu on wishlist detail page

This commit is contained in:
Claudio Ortolina
2024-12-12 20:23:48 +03:00
parent c3f973b1e1
commit ed86ef7b5a
4 changed files with 187 additions and 116 deletions
@@ -118,17 +118,6 @@
{gettext("Populate genres")}
</.link>
<.link
:if={!@record.purchased_at}
class="block px-3 py-1 text-sm leading-6 text-zinc-900 dark:text-zinc-400 hover:bg-zinc-50 dark:hover:text-zinc-300 dark:hover:bg-zinc-700"
role="menuitem"
tabindex="-1"
id={"actions-#{@record.id}-purchase"}
phx-click={JS.push("purchase", value: %{id: @record.id})}
>
{gettext("Purchase")}
</.link>
<.link
class="block px-3 py-1 text-sm leading-6 text-red-900 hover:bg-red-50 dark:text-red-700 dark:hover:bg-red-900/30 dark:hover:text-red-600"
role="menuitem"