mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: prod build
This commit is contained in:
parent
7ddd0f9c09
commit
d616e00265
3 changed files with 8 additions and 10 deletions
|
@ -2,10 +2,10 @@
|
|||
<div class="middle-pane" data-testid="footer-middle-pane">
|
||||
<div id="progressPane" class="progress">
|
||||
<template v-if="song">
|
||||
<h3 class="title">{{ song.title }}</h3>
|
||||
<h3 class="title">{{ song?.title }}</h3>
|
||||
<p class="meta">
|
||||
<a :href="`/#!/artist/${song.artist.id}`" class="artist">{{ song.artist.name }}</a> –
|
||||
<a :href="`/#!/album/${song.album.id}`" class="album">{{ song.album.name }}</a>
|
||||
<a :href="`/#!/artist/${song?.artist.id}`" class="artist">{{ song?.artist.name }}</a> –
|
||||
<a :href="`/#!/album/${song?.album.id}`" class="album">{{ song?.album.name }}</a>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -5,13 +5,17 @@
|
|||
@dblclick.prevent="makeEditable"
|
||||
>
|
||||
<a
|
||||
v-koel-droppable:[contentEditable]="handleDrop"
|
||||
v-if="contentEditable"
|
||||
v-koel-droppable="handleDrop"
|
||||
:class="{ active }"
|
||||
:href="url"
|
||||
@contextmenu.prevent="openContextMenu"
|
||||
>
|
||||
{{ playlist.name }}
|
||||
</a>
|
||||
<a v-else :class="{ active }" :href="url" @contextmenu.prevent="openContextMenu">
|
||||
{{ playlist.name }}
|
||||
</a>
|
||||
|
||||
<NameEditor
|
||||
v-if="nameEditable && editing"
|
||||
|
|
|
@ -3,12 +3,6 @@ import { $ } from '@/utils'
|
|||
|
||||
export const droppable: Directive = {
|
||||
created: (el: HTMLElement, binding) => {
|
||||
const acceptsDrops = binding.arg === undefined || Boolean(binding.arg)
|
||||
|
||||
if (!acceptsDrops) {
|
||||
return
|
||||
}
|
||||
|
||||
el.addEventListener('dragenter', (event: DragEvent) => {
|
||||
event.preventDefault()
|
||||
$.addClass(el, 'droppable')
|
||||
|
|
Loading…
Reference in a new issue