fix: message toaster not imported

This commit is contained in:
Phan An 2024-07-26 16:43:41 +02:00
parent 16a20dd554
commit e5fc5ef77e

View file

@ -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})`)