mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Use computed for playlist/favorite url
This commit is contained in:
parent
4e1ff0fc7a
commit
23049112d1
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<li @dblclick.prevent="edit" :class="['playlist', type, editing ? 'editing' : '']">
|
||||
<a :href="isFavorites ? '/#!/favorites' : `/#!/playlist/${playlist.id}`"
|
||||
<a :href="playlistUrl"
|
||||
@dragleave="removeDroppableState"
|
||||
@dragover.prevent="allowDrop"
|
||||
@drop.stop.prevent="handleDrop"
|
||||
|
@ -44,6 +44,10 @@ export default {
|
|||
isFavorites() {
|
||||
return this.type === 'favorites';
|
||||
},
|
||||
|
||||
playlistUrl() {
|
||||
return this.isFavorites ? '/#!/favorites' : `/#!/playlist/${this.playlist.id}`;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue