diff --git a/lib/music_library_web/live/artist_live/show.html.heex b/lib/music_library_web/live/artist_live/show.html.heex index 6895f5ef..5048799b 100644 --- a/lib/music_library_web/live/artist_live/show.html.heex +++ b/lib/music_library_web/live/artist_live/show.html.heex @@ -6,56 +6,70 @@ <.country_flag country={@country} /> - <.dropdown id={"actions-#{@artist.musicbrainz_id}"} placement="bottom-end"> - <:toggle> - {gettext("Actions")} +
+ + <.dropdown id={"actions-#{@artist.musicbrainz_id}"} placement="bottom-end"> + <:toggle> + {gettext("Actions")} <.icon - name="hero-pencil-square" - class="h-4 w-4 mr-1 phx-click-loading:animate-bounce" + name="hero-ellipsis-vertical" + class="-mt-1 h-5 w-5 text-zinc-500 dark:text-zinc-400 cursor-pointer" aria-hidden="true" data-slot="icon" /> - {gettext("Edit")} - - <.dropdown_link - id={"actions-#{@artist.musicbrainz_id}-refresh-image"} - phx-click={JS.push("refresh_artist_image", value: %{id: @artist.musicbrainz_id})} - > - <.icon - name="hero-photo" - class="h-4 w-4 mr-1 phx-click-loading:animate-bounce" - aria-hidden="true" - data-slot="icon" - /> - {gettext("Refresh image")} - + + <.focus_wrap id={"actions-#{@artist.musicbrainz_id}-focus-wrap"}> + <.dropdown_link + id={"actions-#{@artist.musicbrainz_id}-edit"} + patch={~p"/artists/#{@artist.musicbrainz_id}/edit"} + > + <.icon + name="hero-pencil-square" + class="h-4 w-4 mr-1 phx-click-loading:animate-bounce" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Edit")} + + <.dropdown_link + id={"actions-#{@artist.musicbrainz_id}-refresh-image"} + phx-click={JS.push("refresh_artist_image", value: %{id: @artist.musicbrainz_id})} + > + <.icon + name="hero-photo" + class="h-4 w-4 mr-1 phx-click-loading:animate-bounce" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Refresh image")} + - <.dropdown_link - id={"actions-#{@artist.musicbrainz_id}-refresh-artist-info"} - phx-click={JS.push("refresh_artist_info", value: %{id: @artist.musicbrainz_id})} - > - <.icon - name="hero-arrow-path" - class="h-4 w-4 mr-1 phx-click-loading:animate-spin" - aria-hidden="true" - data-slot="icon" - /> - {gettext("Refresh info")} - - - + <.dropdown_link + id={"actions-#{@artist.musicbrainz_id}-refresh-artist-info"} + phx-click={JS.push("refresh_artist_info", value: %{id: @artist.musicbrainz_id})} + > + <.icon + name="hero-arrow-path" + class="h-4 w-4 mr-1 phx-click-loading:animate-spin" + aria-hidden="true" + data-slot="icon" + /> + {gettext("Refresh info")} + + + +
@@ -233,6 +247,14 @@ /> +<.live_component + id="artist-notes" + sheet_id="artist-notes-sheet" + module={MusicLibraryWeb.NotesComponent} + entity={:artist} + musicbrainz_id={@artist.musicbrainz_id} +/> + <.structured_modal :if={@live_action == :edit} id="artist-info-modal" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index dd2eb5db..99f3fbda 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -1314,6 +1314,7 @@ msgstr "" msgid "No records released on this day." msgstr "" +#: lib/music_library_web/live/artist_live/show.html.heex #: lib/music_library_web/live/collection_live/show.html.heex #, elixir-autogen, elixir-format msgid "Open Notes" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index fd3bf8d8..71810210 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -1314,6 +1314,7 @@ msgstr "" msgid "No records released on this day." msgstr "" +#: lib/music_library_web/live/artist_live/show.html.heex #: lib/music_library_web/live/collection_live/show.html.heex #, elixir-autogen, elixir-format msgid "Open Notes"