Rearrange buttons in artist show page
This commit is contained in:
@@ -98,18 +98,6 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
||||
|
||||
<div class="flex items-center">
|
||||
<.button_group>
|
||||
<.button
|
||||
variant="soft"
|
||||
phx-click={MusicLibraryWeb.Components.Notes.open("artist-notes-sheet")}
|
||||
>
|
||||
<span class="sr-only">{gettext("Open Notes")}</span>
|
||||
<.icon
|
||||
name="hero-pencil"
|
||||
class="icon"
|
||||
aria-hidden="true"
|
||||
data-slot="icon"
|
||||
/>
|
||||
</.button>
|
||||
<.button
|
||||
variant="soft"
|
||||
phx-click={MusicLibraryWeb.Components.Chat.open("artist-chat-sheet")}
|
||||
@@ -123,18 +111,6 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
||||
/>
|
||||
<span :if={@chat_count > 0} class="text-xs font-medium">{@chat_count}</span>
|
||||
</.button>
|
||||
<.button
|
||||
variant="soft"
|
||||
phx-click={Fluxon.open_dialog("debug-data")}
|
||||
>
|
||||
<span class="sr-only">{gettext("Debug data")}</span>
|
||||
<.icon
|
||||
name="hero-code-bracket"
|
||||
class="icon"
|
||||
aria-hidden="true"
|
||||
data-slot="icon"
|
||||
/>
|
||||
</.button>
|
||||
<.dropdown id={"actions-#{@artist.musicbrainz_id}"} placement="bottom-end">
|
||||
<:toggle>
|
||||
<.button variant="soft">
|
||||
@@ -148,6 +124,34 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
||||
</.button>
|
||||
</:toggle>
|
||||
<.focus_wrap id={"actions-#{@artist.musicbrainz_id}-focus-wrap"}>
|
||||
<.dropdown_link
|
||||
id={"actions-#{@artist.musicbrainz_id}-notes"}
|
||||
phx-click={MusicLibraryWeb.Components.Notes.open("artist-notes-sheet")}
|
||||
>
|
||||
<.icon
|
||||
name="hero-pencil"
|
||||
class="mr-1 size-4"
|
||||
aria-hidden="true"
|
||||
data-slot="icon"
|
||||
/>
|
||||
{gettext("Notes")}
|
||||
</.dropdown_link>
|
||||
|
||||
<.dropdown_link
|
||||
id={"actions-#{@artist.musicbrainz_id}-debug"}
|
||||
phx-click={Fluxon.open_dialog("debug-data")}
|
||||
>
|
||||
<.icon
|
||||
name="hero-code-bracket"
|
||||
class="mr-1 size-4"
|
||||
aria-hidden="true"
|
||||
data-slot="icon"
|
||||
/>
|
||||
{gettext("Debug data")}
|
||||
</.dropdown_link>
|
||||
|
||||
<.dropdown_separator />
|
||||
|
||||
<.dropdown_link
|
||||
id={"actions-#{@artist.musicbrainz_id}-edit"}
|
||||
patch={~p"/artists/#{@artist.musicbrainz_id}/edit"}
|
||||
|
||||
Reference in New Issue
Block a user