mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
fix: album/artist song lists are not sortable (#1619)
This commit is contained in:
parent
8be339a23a
commit
9d275436e2
2 changed files with 5 additions and 2 deletions
|
@ -130,7 +130,7 @@ watch(songRows, () => setSelectedSongs(songRows.value.filter(row => row.selected
|
|||
|
||||
let lastScrollTop = 0
|
||||
|
||||
const onScroll = e => {
|
||||
const onScroll = (e: Event) => {
|
||||
const scroller = e.target as HTMLElement
|
||||
|
||||
if (scroller.scrollTop > 512 && lastScrollTop < 512) {
|
||||
|
|
|
@ -13,7 +13,10 @@ import SongList from '@/components/song/SongList.vue'
|
|||
import SongListControls from '@/components/song/SongListControls.vue'
|
||||
import ThumbnailStack from '@/components/ui/ThumbnailStack.vue'
|
||||
|
||||
export const useSongList = (songs: Ref<Song[]>, config: Partial<SongListConfig> = {}) => {
|
||||
export const useSongList = (
|
||||
songs: Ref<Song[]>,
|
||||
config: Partial<SongListConfig> = { sortable: true, reorderable: true }
|
||||
) => {
|
||||
config = reactive(config)
|
||||
const { isCurrentScreen, go, onRouteChanged } = useRouter()
|
||||
|
||||
|
|
Loading…
Reference in a new issue