Improve refresh buttons in wishlist details view

This commit is contained in:
Claudio Ortolina
2024-11-19 16:31:06 +00:00
parent 7e93ee71bc
commit eee70b0999
2 changed files with 32 additions and 22 deletions
@@ -34,12 +34,28 @@
</.link>
<.link phx-click={JS.push("refresh_cover", value: %{id: @record.id})}>
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
<%= gettext("Refresh Cover") %>
<span class="sr-only"><%= gettext("Refresh") %></span>
<.icon
id="refresh-lastfm-feed"
name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true"
data-slot="icon"
/>
<%= gettext("Cover") %>
</.button>
</.link>
<.link phx-click={JS.push("refresh_musicbrainz_data", value: %{id: @record.id})}>
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
<%= gettext("Refresh MB Data") %>
<span class="sr-only"><%= gettext("Refresh") %></span>
<.icon
id="refresh-lastfm-feed"
name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true"
data-slot="icon"
/>
<%= gettext("MB Data") %>
</.button>
</.link>
<.link