Removed unused dropdown links

This commit is contained in:
Claudio Ortolina
2025-06-15 09:46:06 +03:00
parent 860682403b
commit ac3cda8790
3 changed files with 2 additions and 42 deletions
@@ -139,20 +139,6 @@ defmodule MusicLibraryWeb.RecordComponents do
</div>
</:toggle>
<.focus_wrap id={"actions-#{record.id}-focus-wrap"} class="pointer-events-auto">
<.dropdown_link id={"actions-#{record.id}-show"} navigate={@record_show_path.(record)}>
{gettext("Show")}
</.dropdown_link>
<a
href={MusicBrainz.ReleaseGroup.url(record.musicbrainz_id)}
target=".blank"
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="0"
id={"actions-#{record.id}-musicbrainz"}
>
{gettext("View on MusicBrainz")}
</a>
<.dropdown_link id={"actions-#{record.id}-edit"} patch={@record_edit_path.(record)}>
{gettext("Edit")}
</.dropdown_link>
@@ -274,20 +260,6 @@ defmodule MusicLibraryWeb.RecordComponents do
/>
</:toggle>
<.focus_wrap id={"actions-#{record.id}-focus-wrap"}>
<.dropdown_link id={"actions-#{record.id}-show"} navigate={@record_show_path.(record)}>
{gettext("Show")}
</.dropdown_link>
<a
href={MusicBrainz.ReleaseGroup.url(record.musicbrainz_id)}
target=".blank"
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="0"
id={"actions-#{record.id}-musicbrainz"}
>
{gettext("View on MusicBrainz")}
</a>
<.dropdown_link id={"actions-#{record.id}-edit"} patch={@record_edit_path.(record)}>
{gettext("Edit")}
</.dropdown_link>
@@ -302,12 +274,12 @@ defmodule MusicLibraryWeb.RecordComponents do
>
{gettext("Purchased")}
</.dropdown_link>
<.dropdown_separator />
<.dropdown_link
id={"actions-#{record.id}-delete"}
phx-click={JS.push("delete", value: %{id: record.id}) |> hide("##{id}")}
data-confirm={gettext("Are you sure?")}
class="text-red-900 hover:bg-red-50 dark:text-red-700 dark:hover:bg-red-900/30 dark:hover:text-red-600"
class="text-red-900! hover:bg-red-50! dark:text-red-500! dark:hover:bg-red-900/30! dark:hover:text-red-600!"
>
{gettext("Delete")}
</.dropdown_link>
-6
View File
@@ -165,7 +165,6 @@ msgstr ""
msgid "Search"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#: lib/music_library_web/live/collection_live/show.ex
#: lib/music_library_web/live/wishlist_live/show.ex
#, elixir-autogen, elixir-format
@@ -209,11 +208,6 @@ msgstr ""
msgid "Updated at"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "View on MusicBrainz"
msgstr ""
#: lib/music_library_web/controllers/session_html/new.html.heex
#, elixir-autogen, elixir-format
msgid "Welcome to your Music Library"
-6
View File
@@ -165,7 +165,6 @@ msgstr ""
msgid "Search"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#: lib/music_library_web/live/collection_live/show.ex
#: lib/music_library_web/live/wishlist_live/show.ex
#, elixir-autogen, elixir-format
@@ -209,11 +208,6 @@ msgstr ""
msgid "Updated at"
msgstr ""
#: lib/music_library_web/components/record_components.ex
#, elixir-autogen, elixir-format
msgid "View on MusicBrainz"
msgstr ""
#: lib/music_library_web/controllers/session_html/new.html.heex
#, elixir-autogen, elixir-format
msgid "Welcome to your Music Library"