mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: message toaster not imported
This commit is contained in:
parent
16a20dd554
commit
e5fc5ef77e
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
|||
import { computed, ref, toRefs } from 'vue'
|
||||
import { defaultCover } from '@/utils'
|
||||
import { playlistStore } from '@/stores'
|
||||
import { useErrorHandler, useFileReader, useKoelPlus, usePolicies } from '@/composables'
|
||||
import { useErrorHandler, useFileReader, useKoelPlus, useMessageToaster, usePolicies } from '@/composables'
|
||||
import { faTrash, faUpload } from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
const props = defineProps<{ playlist: Playlist }>()
|
||||
|
@ -38,6 +38,7 @@ const { playlist } = toRefs(props)
|
|||
|
||||
const { currentUserCan } = usePolicies()
|
||||
const { isPlus } = useKoelPlus()
|
||||
const { toastSuccess } = useMessageToaster()
|
||||
|
||||
const canEditPlaylist = computed(() => currentUserCan.editPlaylist(playlist.value!))
|
||||
const backgroundImage = computed(() => `url(${playlist.value.cover || defaultCover})`)
|
||||
|
|
Loading…
Reference in a new issue