Consolidate usage of 'artist names' string

This commit is contained in:
Claudio Ortolina
2025-04-20 14:29:53 +01:00
parent 5fe3e8eee1
commit 17c9098aba
4 changed files with 9 additions and 11 deletions
@@ -116,11 +116,9 @@ defmodule MusicLibraryWeb.CollectionLive.Show do
end
def page_title(:show, record) do
artist_names = Enum.map(record.artists, & &1.name)
Enum.join(
[
Enum.join(artist_names, ", "),
Records.Record.artist_names(record),
"-",
record.title,
"·",
@@ -133,11 +131,9 @@ defmodule MusicLibraryWeb.CollectionLive.Show do
end
def page_title(action, record) do
artist_names = Enum.map(record.artists, & &1.name)
Enum.join(
[
Enum.join(artist_names, ", "),
Records.Record.artist_names(record),
"-",
record.title,
"·",