Skip to content

Commit

Permalink
chore(playlist): enable song's id on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed May 26, 2024
1 parent f127302 commit b7b7e54
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions views/pages/playlist.templ
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,21 @@ templ playlistContent(pl entities.Playlist) {
>
for _, s := range pl.Songs {
if isMobile, ok := ctx.Value("is-mobile").(bool); ok && isMobile {
@song.Song(s, []string{}, []templ.Component{songOptionsMobile(s, pl.PublicId)}, playSongFromPlaylist(s.YtId, pl))
@song.Song(
s,
[]string{},
[]templ.Component{songOptionsMobile(s, pl.PublicId)},
playSongFromPlaylist(s.YtId, pl),
false,
)
} else {
@song.Song(
s,
[]string{
playedTimes(s.PlayTimes),
"Added on " + s.AddedAt,
},
[]templ.Component{
removeSong(s, pl.PublicId),
},
[]templ.Component{removeSong(s, pl.PublicId)},
playSongFromPlaylist(s.YtId, pl),
false,
)
Expand Down

0 comments on commit b7b7e54

Please sign in to comment.