Skip to content
Snippets Groups Projects
Verified Commit 86cf7a89 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #488: Display public playlists properly for anonymous users

parent 3f9bf9af
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