Merge branch '488-playlist-anonymous' into 'develop'
Resolve "Public playlist not available for anonymous users" Closes #488 See merge request funkwhale/funkwhale!381
This commit is contained in:
commit
887d1cfed9
|
@ -0,0 +1 @@
|
|||
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>
|
||||
|
|
Loading…
Reference in New Issue