diff --git a/app/views/components/playlist/options.templ b/app/views/components/playlist/options.templ index a77214a..8b2316e 100644 --- a/app/views/components/playlist/options.templ +++ b/app/views/components/playlist/options.templ @@ -26,6 +26,18 @@ templ playlistOptions(playlist entities.Playlist) {

Playlist's Options


@publicPlaylistToggle(playlist.PublicId, playlist.IsPublic) + if len(playlist.Songs) != 0 { } - if perm, ok := ctx.Value("playlist-permission").(models.PlaylistPermissions); ok && (perm & models.JoinerPermission) != 0 { if perm, ok := ctx.Value("playlist-permission").(models.PlaylistPermissions); ok && (perm & models.OwnerPermission) != 0 { @playlist.PlaylistsOptions(pl) } else { + @joinLeavePlaylist(pl.PublicId, perm) }