Skip to content
Snippets Groups Projects
Commit 887d1cfe authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '488-playlist-anonymous' into 'develop'

Resolve "Public playlist not available for anonymous users"

Closes #488

See merge request funkwhale/funkwhale!381
parents 3f9bf9af 86cf7a89
No related branches found
No related tags found
No related merge requests found
Display public playlists properly for anonymous users (#488)
......@@ -24,13 +24,13 @@
<play-button class="orange" :tracks="tracks"><translate>Play all</translate></play-button>
<button
class="ui icon button"
v-if="playlist.user.id === $store.state.auth.profile.id"
v-if="$store.state.auth.profile && playlist.user.id === $store.state.auth.profile.id"
@click="edit = !edit">
<i class="pencil icon"></i>
<template v-if="edit"><translate>End edition</translate></template>
<template v-else><translate>Edit...</translate></template>
</button>
<dangerous-button v-if="playlist.user.id === $store.state.auth.profile.id" class="labeled icon" :action="deletePlaylist">
<dangerous-button v-if="$store.state.auth.profile && playlist.user.id === $store.state.auth.profile.id" class="labeled icon" :action="deletePlaylist">
<i class="trash icon"></i> <translate>Delete</translate>
<p slot="modal-header">
<translate :translate-params="{playlist: playlist.name}">Do you want to delete the playlist "%{ playlist }"?</translate>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment