mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented drag core and song reorganizing
This commit is contained in:
1 parent
e5c7b67626
commit
b154df430a
5 files changed
+364
-94
No files matched your search
@@ -1412,6 +1412,7 @@ export default function App() {
|
||||
onSortingChange={setSorting}
|
||||
selection={{ selected, onChange: setSelected }}
|
||||
marked={{ ids: heldInFolder, title: 'Already in your collection' }}
|
||||
dragFrom={{ origin: 'folder' }}
|
||||
onRowContextMenu={(track, x, y) => openMenu(track, x, y, true)}
|
||||
onHeaderContextMenu={(x, y) => setHeaderMenu({ x, y })}
|
||||
onPlay={playTrack}
|
||||
@@ -1447,6 +1448,7 @@ export default function App() {
|
||||
sorting={sorting}
|
||||
onSortingChange={setSorting}
|
||||
onRowContextMenu={(track, x, y) => openMenu(track, x, y, false)}
|
||||
dragFrom={{ origin: 'device' }}
|
||||
onHeaderContextMenu={(x, y) => setHeaderMenu({ x, y })}
|
||||
onPlay={playTrack}
|
||||
activeTrackId={prepTrack?.id ?? null}
|
||||
@@ -1508,6 +1510,10 @@ export default function App() {
|
||||
: undefined
|
||||
}
|
||||
onRemove={playlistEditable ? confirmRemoveFromPlaylist : undefined}
|
||||
dragFrom={{
|
||||
origin: 'collection',
|
||||
playlistId: playlistEditable && source.kind === 'playlist' ? source.id : undefined,
|
||||
}}
|
||||
onRowContextMenu={(track, x, y) => openMenu(track, x, y, true)}
|
||||
onHeaderContextMenu={(x, y) => setHeaderMenu({ x, y })}
|
||||
onPlay={playTrack}
|
||||
|
||||
Reference in new issue
Block a user